@Override public boolean applies(GameEvent event, Ability source, Game game) { if (super.applies(event, source, game)) { if (game.getObject(event.getSourceId()).getCardType().contains(cardType)) { if (event.getTargetId().equals(source.getSourceId())) { return true; } } } return false; } }
@Override public boolean applies(GameEvent event, Ability source, Game game) { if (super.applies(event, source, game)) { if (game.getObject(event.getSourceId()).getCardType().contains(cardType)){ if (event.getTargetId().equals(source.getSourceId())) { return true; } } } return false; } }
@Override public boolean applies(GameEvent event, Ability source, Game game) { if (super.applies(event, source, game)) { if (isEnchantedCreature(game.getObject(event.getSourceId()), game)) { if (event.getTargetId().equals(source.getSourceId())) { return true; } } } return false; }
@Override public boolean applies(GameEvent event, Ability source, Game game) { if (super.applies(event, source, game)) { if (isEnchantedCreature(game.getObject(event.getSourceId()), game)) { if (event.getTargetId().equals(source.getSourceId())) { return true; } } } return false; }
@Override public boolean applies(GameEvent event, Ability source, Game game) { if (super.applies(event, source, game)) { MageObject sourceObject = game.getObject(event.getSourceId()); if (sourceObject != null && sourceObject.isCreature()) { if (event.getTargetId().equals(source.getSourceId())) { return true; } } } return false; }
@Override public boolean applies(GameEvent event, Ability source, Game game) { if (super.applies(event, source, game)) { MageObject sourceObject = game.getObject(event.getSourceId()); if (sourceObject != null && sourceObject.isCreature()) { if (event.getTargetId().equals(source.getSourceId())) { return true; } } } return false; }
@Override public boolean applies(GameEvent event, Ability source, Game game) { if (super.applies(event, source, game)) { if (game.getObject(event.getSourceId()).hasSubtype(subtype, game)){ if (event.getTargetId().equals(source.getSourceId())) { return true; } } } return false; } }
@Override public boolean applies(GameEvent event, Ability source, Game game) { return super.applies(event, source, game) && event.getFlag() && game.getObject(event.getSourceId()).hasSubtype(SubType.WALL, game) && event.getTargetId().equals(source.getSourceId()); } }
@Override public boolean applies(GameEvent event, Ability source, Game game) { if (super.applies(event, source, game)) { if (event.getTargetId().equals(source.getSourceId())) { Spell spell = game.getStack().getSpell(event.getSourceId()); if (spell != null) { for (UUID modeId : spell.getStackAbility().getModes().getSelectedModes()) { Mode mode = spell.getStackAbility().getModes().get(modeId); for (Target target : mode.getTargets()) { for (UUID targetId : target.getTargets()) { if (targetId.equals(source.getSourceId())) { return true; } } } } } } } return false; } }