mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08: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
|
|
@ -56,6 +56,9 @@ public abstract class StaticAbility extends AbilityImpl {
|
|||
if (game.getShortLivingLKI(getSourceId(), zone)) {
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue