forked from External/mage
Added missing logic to remove continuous effects with duration EndOfCombat.
This commit is contained in:
parent
c2ecf71cab
commit
f84177bbcd
5 changed files with 40 additions and 5 deletions
|
|
@ -73,5 +73,15 @@ import mage.game.events.GameEvent;
|
|||
}
|
||||
}
|
||||
|
||||
public void removeEndOfCombatAbilities() {
|
||||
for (Iterator<DelayedTriggeredAbility> it = this.iterator();it.hasNext();) {
|
||||
DelayedTriggeredAbility ability = it.next();
|
||||
if (ability.getDuration() == Duration.EndOfCombat) {
|
||||
it.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue