forked from External/mage
rewrote some streams and optionals
This commit is contained in:
parent
d0bf77cedf
commit
594ffa2754
29 changed files with 199 additions and 273 deletions
|
|
@ -28,20 +28,21 @@
|
|||
|
||||
package mage.abilities;
|
||||
|
||||
import java.util.Iterator;
|
||||
import mage.constants.Duration;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class DelayedTriggeredAbilities extends AbilitiesImpl<DelayedTriggeredAbility> {
|
||||
public class DelayedTriggeredAbilities extends AbilitiesImpl<DelayedTriggeredAbility> {
|
||||
|
||||
public DelayedTriggeredAbilities() {}
|
||||
public DelayedTriggeredAbilities() {
|
||||
}
|
||||
|
||||
public DelayedTriggeredAbilities(final DelayedTriggeredAbilities abilities) {
|
||||
public DelayedTriggeredAbilities(final DelayedTriggeredAbilities abilities) {
|
||||
super(abilities);
|
||||
}
|
||||
|
||||
|
|
@ -52,9 +53,9 @@ import mage.game.events.GameEvent;
|
|||
|
||||
public void checkTriggers(GameEvent event, Game game) {
|
||||
if (this.size() > 0) {
|
||||
for (Iterator<DelayedTriggeredAbility> it = this.iterator();it.hasNext();) {
|
||||
for (Iterator<DelayedTriggeredAbility> it = this.iterator(); it.hasNext(); ) {
|
||||
DelayedTriggeredAbility ability = it.next();
|
||||
if (ability.getDuration()== Duration.Custom){
|
||||
if (ability.getDuration() == Duration.Custom) {
|
||||
if (ability.isInactive(game)) {
|
||||
it.remove();
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue