forked from External/mage
Remove ConditionalTriggeredAbility and add trigger condition into triggered abilities (#13656)
* remove ConditionalTriggeredAbility * a few small fixes * merge fix * simplify phrase handling * add documentation * a few text fixes * update wording
This commit is contained in:
parent
7a63f352c9
commit
535f932ee3
47 changed files with 332 additions and 544 deletions
|
|
@ -93,7 +93,7 @@ public class OrTriggeredAbility extends TriggeredAbilityImpl {
|
|||
for (Effect e : getEffects()) { //Add effects to the sub-abilities so that they can set target pointers
|
||||
ability.addEffect(e);
|
||||
}
|
||||
if (ability.checkEventType(event, game) && ability.checkTrigger(event, game)) {
|
||||
if (ability.checkEventType(event, game) && ability.checkTrigger(event, game) && ability.checkTriggerCondition(game)) {
|
||||
toRet = true;
|
||||
}
|
||||
ability.getEffects().clear(); //Remove afterwards, ensures that they remain synced even with copying
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue