[refactoring][minor] Replaced all tabs with four spaces.

This commit is contained in:
North 2012-06-19 23:50:20 +03:00
parent e646e4768d
commit 239a4fb100
2891 changed files with 79411 additions and 79411 deletions

View file

@ -45,10 +45,10 @@ public class SpellCastTriggeredAbility extends TriggeredAbilityImpl<SpellCastTri
private static final FilterSpell spellCard = new FilterSpell("a spell");
protected FilterSpell filter;
/**
* If true, the source that triggered the ability will be set as target to effect.
*/
protected boolean rememberSource = false;
/**
* If true, the source that triggered the ability will be set as target to effect.
*/
protected boolean rememberSource = false;
public SpellCastTriggeredAbility(Effect effect, boolean optional) {
super(Zone.BATTLEFIELD, effect, optional);
@ -59,16 +59,16 @@ public class SpellCastTriggeredAbility extends TriggeredAbilityImpl<SpellCastTri
this(effect, filter, optional, false);
}
public SpellCastTriggeredAbility(Effect effect, FilterSpell filter, boolean optional, boolean rememberSource) {
public SpellCastTriggeredAbility(Effect effect, FilterSpell filter, boolean optional, boolean rememberSource) {
super(Zone.BATTLEFIELD, effect, optional);
this.filter = filter;
this.rememberSource = rememberSource;
this.rememberSource = rememberSource;
}
public SpellCastTriggeredAbility(final SpellCastTriggeredAbility ability) {
super(ability);
filter = ability.filter;
this.rememberSource = ability.rememberSource;
this.rememberSource = ability.rememberSource;
}
@Override
@ -76,9 +76,9 @@ public class SpellCastTriggeredAbility extends TriggeredAbilityImpl<SpellCastTri
if (event.getType() == GameEvent.EventType.SPELL_CAST && event.getPlayerId().equals(this.getControllerId())) {
Spell spell = game.getStack().getSpell(event.getTargetId());
if (spell != null && filter.match(spell, game)) {
if (rememberSource) {
this.getEffects().get(0).setTargetPointer(new FixedTarget(spell.getId()));
}
if (rememberSource) {
this.getEffects().get(0).setTargetPointer(new FixedTarget(spell.getId()));
}
return true;
}
}