public void checkTriggers(GameEvent event, Game game) { for (TriggeredAbility ability : this.values()) { if (ability.isInUseableZone(game, null, true)) { MageObject object = getMageObject(event, game, ability); if (object != null) { if (checkAbilityStillExists(ability, event, object)) { if (object instanceof Permanent) { ability.setControllerId(((Permanent) object).getControllerId()); } if (ability.checkTrigger(event, game)) { UUID controllerId = ability.getControllerId(); ability.trigger(game, controllerId); } } } } } }