mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
* Minor formatting.
This commit is contained in:
parent
0e64df5d93
commit
dedbeab86b
2 changed files with 3 additions and 6 deletions
|
|
@ -76,7 +76,7 @@ public class SpellCastControllerTriggeredAbility extends TriggeredAbilityImpl {
|
|||
|
||||
public SpellCastControllerTriggeredAbility(final SpellCastControllerTriggeredAbility ability) {
|
||||
super(ability);
|
||||
filter = ability.filter;
|
||||
this.filter = ability.filter;
|
||||
this.rememberSource = ability.rememberSource;
|
||||
this.rule = ability.rule;
|
||||
}
|
||||
|
|
@ -90,7 +90,7 @@ public class SpellCastControllerTriggeredAbility extends TriggeredAbilityImpl {
|
|||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
if (event.getPlayerId().equals(this.getControllerId())) {
|
||||
Spell spell = game.getStack().getSpell(event.getTargetId());
|
||||
if (spell != null && filter.match(spell, game)) {
|
||||
if (spell != null && filter.match(spell, getControllerId(), game)) {
|
||||
if (rememberSource) {
|
||||
this.getEffects().get(0).setTargetPointer(new FixedTarget(spell.getId()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue