forked from External/mage
* Exploit - Fixed that Exploit also triggered if the creature with Exploit left the battlefield before the first ability of Exploit resolved.
This commit is contained in:
parent
a56cccebf9
commit
f62d3ac227
17 changed files with 231 additions and 44 deletions
|
|
@ -28,9 +28,13 @@
|
|||
|
||||
package mage.abilities;
|
||||
|
||||
import mage.MageObject;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.constants.AbilityType;
|
||||
import mage.constants.Zone;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -49,6 +53,14 @@ public abstract class StaticAbility extends AbilityImpl {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isInUseableZone(Game game, MageObject source, GameEvent event) {
|
||||
if (game.getShortLivingLKI(getSourceId(), zone)) {
|
||||
return true;
|
||||
}
|
||||
return super.isInUseableZone(game, source, event);
|
||||
}
|
||||
|
||||
public StaticAbility(StaticAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue