mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 02:52:02 -08:00
clear hints before static ones are added in triggers' checkTrigger
This commit is contained in:
parent
cbe1db3434
commit
01d2550396
2 changed files with 2 additions and 0 deletions
|
|
@ -127,6 +127,7 @@ class AetherRevoltTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
}
|
}
|
||||||
this.getEffects().clear();
|
this.getEffects().clear();
|
||||||
this.getEffects().add(new DamageTargetEffect(amount));
|
this.getEffects().add(new DamageTargetEffect(amount));
|
||||||
|
this.getHints().clear();
|
||||||
this.addHint(new StaticHint("Energy you got: " + amount));
|
this.addHint(new StaticHint("Energy you got: " + amount));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -87,6 +87,7 @@ class RampagingWarMammothTriggeredAbility extends ZoneChangeTriggeredAbility {
|
||||||
this.addEffect(new DestroyTargetEffect());
|
this.addEffect(new DestroyTargetEffect());
|
||||||
// Target up to X artifacts
|
// Target up to X artifacts
|
||||||
this.addTarget(new TargetArtifactPermanent(0, xValue));
|
this.addTarget(new TargetArtifactPermanent(0, xValue));
|
||||||
|
this.getHints().clear();
|
||||||
this.addHint(new StaticHint("X = " + xValue));
|
this.addHint(new StaticHint("X = " + xValue));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue