mirror of
https://github.com/magefree/mage.git
synced 2026-01-20 10:20:00 -08:00
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:
parent
0e3327621a
commit
96aafcd475
11 changed files with 211 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue