forked from External/mage
Some changes to check if Object had ability and the abillity can trigger.
This commit is contained in:
parent
d68668d7c1
commit
3758cefc59
10 changed files with 87 additions and 25 deletions
|
|
@ -72,6 +72,9 @@ public class ExploitCreatureTriggeredAbility extends TriggeredAbilityImpl {
|
|||
@Override
|
||||
public boolean isInUseableZone(Game game, MageObject source, GameEvent event) {
|
||||
if (event.getTargetId().equals(getSourceId()) && event.getSourceId().equals(getSourceId())) {
|
||||
if (!this.hasSourceObjectAbility(game, source, event)) {
|
||||
return false;
|
||||
}
|
||||
return true; // if Exploits creature sacrifices itself, exploit triggers
|
||||
}
|
||||
return super.isInUseableZone(game, source, event);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue