Fixed that adjustTarget did not work correctly for Triggered abilities. Fixed that adjustTargets also works now for cards copied from graveyard (e.g.by Feldon of the Third Path).

This commit is contained in:
LevelX2 2015-01-07 01:15:03 +01:00
parent 0e3327621a
commit 96aafcd475
11 changed files with 211 additions and 8 deletions

View file

@ -277,7 +277,7 @@ public abstract class AbilityImpl implements Ability {
// and/or zones become the target of a spell trigger at this point; they'll wait to be put on
// the stack until the spell has finished being cast.)
if (sourceObject != null) {
if (sourceObject != null && !this.getAbilityType().equals(AbilityType.TRIGGERED)) { // triggered abilities check this already TriggeredAbilities.checkTriggers()
sourceObject.adjustTargets(this, game);
}
if (getTargets().size() > 0 && getTargets().chooseTargets(getEffects().get(0).getOutcome(), this.controllerId, this, game) == false) {