Fixed a problem with static abilities for battlefield zone where the source was entering the battlefield but the ability did not work.

This commit is contained in:
LevelX2 2016-09-24 01:13:13 +02:00
parent c9bb0be016
commit d5d00451a8
2 changed files with 4 additions and 1 deletions

View file

@ -219,7 +219,7 @@ public class UndyingTest extends CardTestPlayerBase {
} }
/** /**
* Tatterkite is getting counters on it, i have him in a edh deck with * Tatterkite is getting counters on it, I have him in a edh deck with
* Mikaeus, the Lunarch and when Tatterkite dies it triggers the undying and * Mikaeus, the Lunarch and when Tatterkite dies it triggers the undying and
* he gets the +1/+1 counters * he gets the +1/+1 counters
*/ */

View file

@ -56,6 +56,9 @@ public abstract class StaticAbility extends AbilityImpl {
if (game.getShortLivingLKI(getSourceId(), zone)) { if (game.getShortLivingLKI(getSourceId(), zone)) {
return true; // maybe this can be a problem if effects removed the ability from the object return true; // maybe this can be a problem if effects removed the ability from the object
} }
if (game.getPermanentEntering(getSourceId()) != null && zone.equals(Zone.BATTLEFIELD)) {
return true; // abilities of permanents entering battlefield are countes as on battlefield
}
return super.isInUseableZone(game, source, event); return super.isInUseableZone(game, source, event);
} }