mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
Fixed NPE and triggered abilities not working for tokens.
This commit is contained in:
parent
ccca6db6a9
commit
ff32c1698b
3 changed files with 37 additions and 5 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue