mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00:00
Fixed a casting bug in the echoAbility (issue #174).
This commit is contained in:
parent
cb18bf2bd4
commit
c34377526f
1 changed files with 2 additions and 1 deletions
|
@ -38,6 +38,7 @@ import mage.abilities.costs.Cost;
|
|||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.EntersTheBattlefieldEvent;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.events.ZoneChangeEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
@ -73,7 +74,7 @@ public class EchoAbility extends TriggeredAbilityImpl<EchoAbility> {
|
|||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.ENTERS_THE_BATTLEFIELD) {
|
||||
ZoneChangeEvent zEvent = (ZoneChangeEvent)event;
|
||||
EntersTheBattlefieldEvent zEvent = (EntersTheBattlefieldEvent)event;
|
||||
if(zEvent.getFromZone() == null && this.echoPaid) {
|
||||
this.echoPaid = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue