Fixed NPE and triggered abilities not working for tokens.

This commit is contained in:
magenoxx 2011-07-30 10:52:41 +04:00
parent ccca6db6a9
commit ff32c1698b
3 changed files with 37 additions and 5 deletions

View file

@ -164,7 +164,8 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
//20100716 - 601.2e
if (game.getObject(sourceId) != null) {
//game.getObject(sourceId).adjustCosts(this, game);
game.getCard(sourceId).adjustCosts(this, game);
if (game.getCard(sourceId) != null)
game.getCard(sourceId).adjustCosts(this, game);
}
if (!useAlternativeCost(game)) {