Some changes to check if Object had ability and the abillity can trigger.

This commit is contained in:
LevelX2 2015-04-27 18:05:39 +02:00
parent d68668d7c1
commit 3758cefc59
10 changed files with 87 additions and 25 deletions

View file

@ -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);