mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
* Kurkesh, Onakke Ancient - Fixed that it also triggered if other players did activate abilities of artifacts.
This commit is contained in:
parent
8f64a2ab54
commit
f56be981cd
1 changed files with 11 additions and 9 deletions
|
@ -101,13 +101,15 @@ class KurkeshOnakkeAncientTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean checkTrigger(GameEvent event, Game game) {
|
public boolean checkTrigger(GameEvent event, Game game) {
|
||||||
Card source = game.getPermanentOrLKIBattlefield(event.getSourceId());
|
if (event.getPlayerId().equals(getControllerId())) {
|
||||||
if (source != null && source.getCardType().contains(CardType.ARTIFACT)) {
|
Card source = game.getPermanentOrLKIBattlefield(event.getSourceId());
|
||||||
StackAbility stackAbility = (StackAbility) game.getStack().getStackObject(event.getSourceId());
|
if (source != null && source.getCardType().contains(CardType.ARTIFACT)) {
|
||||||
if (!(stackAbility.getStackAbility() instanceof ManaAbility)) {
|
StackAbility stackAbility = (StackAbility) game.getStack().getStackObject(event.getSourceId());
|
||||||
Effect effect = this.getEffects().get(0);
|
if (!(stackAbility.getStackAbility() instanceof ManaAbility)) {
|
||||||
effect.setValue("stackAbility", stackAbility.getStackAbility());
|
Effect effect = this.getEffects().get(0);
|
||||||
return true;
|
effect.setValue("stackAbility", stackAbility.getStackAbility());
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
@ -115,7 +117,7 @@ class KurkeshOnakkeAncientTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getRule() {
|
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() {
|
KurkeshOnakkeAncientEffect() {
|
||||||
super(Outcome.Benefit);
|
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) {
|
KurkeshOnakkeAncientEffect(final KurkeshOnakkeAncientEffect effect) {
|
||||||
|
|
Loading…
Reference in a new issue