forked from External/mage
Make Tree of Perdition's effect check to make sure that it's a creature before swapping toughness, because noncreatures do not have toughness.
This commit is contained in:
parent
ca8b02d5ab
commit
dd67682c12
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class TreeOfPerditionEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Player opponent = game.getPlayer(source.getFirstTarget());
|
||||
Permanent perm = game.getPermanent(source.getSourceId());
|
||||
if (perm == null || opponent == null || !opponent.isLifeTotalCanChange()) {
|
||||
if (perm == null || opponent == null || !opponent.isLifeTotalCanChange() || !perm.isCreature()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue