mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Fixed ability adjustCosts.
This commit is contained in:
parent
65b3451dbd
commit
916e74b520
1 changed files with 8 additions and 2 deletions
|
@ -31,10 +31,12 @@ package mage.abilities;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import mage.Constants.AbilityType;
|
import mage.Constants.AbilityType;
|
||||||
import mage.Constants.EffectType;
|
import mage.Constants.EffectType;
|
||||||
import mage.Constants.Outcome;
|
import mage.Constants.Outcome;
|
||||||
import mage.Constants.Zone;
|
import mage.Constants.Zone;
|
||||||
|
import mage.MageObject;
|
||||||
import mage.abilities.costs.AlternativeCost;
|
import mage.abilities.costs.AlternativeCost;
|
||||||
import mage.abilities.costs.Cost;
|
import mage.abilities.costs.Cost;
|
||||||
import mage.abilities.costs.Costs;
|
import mage.abilities.costs.Costs;
|
||||||
|
@ -51,6 +53,7 @@ import mage.choices.Choices;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.target.Target;
|
import mage.target.Target;
|
||||||
import mage.target.Targets;
|
import mage.target.Targets;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -161,8 +164,11 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//20100716 - 601.2e
|
//20100716 - 601.2e
|
||||||
if (game.getObject(sourceId) != null)
|
if (game.getObject(sourceId) != null) {
|
||||||
game.getObject(sourceId).adjustCosts(this, game);
|
//game.getObject(sourceId).adjustCosts(this, game);
|
||||||
|
game.getCard(sourceId).adjustCosts(this, game);
|
||||||
|
}
|
||||||
|
|
||||||
if (!useAlternativeCost(game)) {
|
if (!useAlternativeCost(game)) {
|
||||||
//20101001 - 601.2e
|
//20101001 - 601.2e
|
||||||
game.getContinuousEffects().costModification(this, game);
|
game.getContinuousEffects().costModification(this, game);
|
||||||
|
|
Loading…
Reference in a new issue