mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
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:
parent
c9bb0be016
commit
d5d00451a8
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue