* Kurkesh, Onakke Ancient - Fixed that it also triggered if other players did activate abilities of artifacts.

This commit is contained in:
LevelX2 2015-09-14 23:44:31 +02:00
parent 8f64a2ab54
commit f56be981cd

View file

@ -101,6 +101,7 @@ class KurkeshOnakkeAncientTriggeredAbility extends TriggeredAbilityImpl {
@Override
public boolean checkTrigger(GameEvent event, Game game) {
if (event.getPlayerId().equals(getControllerId())) {
Card source = game.getPermanentOrLKIBattlefield(event.getSourceId());
if (source != null && source.getCardType().contains(CardType.ARTIFACT)) {
StackAbility stackAbility = (StackAbility) game.getStack().getStackObject(event.getSourceId());
@ -110,12 +111,13 @@ class KurkeshOnakkeAncientTriggeredAbility extends TriggeredAbilityImpl {
return true;
}
}
}
return false;
}
@Override
public String getRule() {
return "Whenever you activate an ability of an artifact, if it isn't a mana ability, you may pay {R}. If you do, copy that ability. You may choose new targets for the copy.";
return "Whenever you activate an ability of an artifact, if it isn't a mana ability" + super.getRule();
}
}
@ -123,7 +125,7 @@ class KurkeshOnakkeAncientEffect extends OneShotEffect {
KurkeshOnakkeAncientEffect() {
super(Outcome.Benefit);
this.staticText = ", you may pay {R}. If you do, copy that ability. You may choose new targets for the copy.";
this.staticText = ", you may pay {R}. If you do, copy that ability. You may choose new targets for the copy";
}
KurkeshOnakkeAncientEffect(final KurkeshOnakkeAncientEffect effect) {