Fixed a casting bug in the echoAbility (issue #174).

This commit is contained in:
LevelX2 2013-03-22 20:37:35 +01:00
parent cb18bf2bd4
commit c34377526f

View file

@ -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;
}