mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 12:19:59 -08:00
add TODOs on hacked Spellbane Centaur
This commit is contained in:
parent
a9cd45c84e
commit
77613ad318
2 changed files with 8 additions and 6 deletions
|
|
@ -21,7 +21,7 @@ import mage.game.stack.StackObject;
|
|||
public class CantBeTargetedAllEffect extends ContinuousRuleModifyingEffectImpl {
|
||||
|
||||
private FilterPermanent filterTarget;
|
||||
private FilterObject filterSource;
|
||||
private FilterObject filterSource; // TODO: should be FilterStackObject
|
||||
|
||||
public CantBeTargetedAllEffect(FilterPermanent filterTarget, Duration duration) {
|
||||
this(filterTarget, null, duration);
|
||||
|
|
@ -65,10 +65,12 @@ public class CantBeTargetedAllEffect extends ContinuousRuleModifyingEffectImpl {
|
|||
// only spells have to be selected
|
||||
return false;
|
||||
}
|
||||
// TODO: this is a hack for Spellbane Centaur?
|
||||
sourceObject = ((StackAbility) stackObject).getSourceObject(game);
|
||||
} else {
|
||||
sourceObject = stackObject;
|
||||
}
|
||||
// TODO: this should be 4-argument match instead?
|
||||
if (filterSource.match(sourceObject, game)) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue