- Fixing Auras requesting SpellPermanent and causing a crash, since Auras no longer use the SpellPermanent class

This commit is contained in:
Sol
2012-11-07 23:32:09 +00:00
parent 01b746c80b
commit 3b5a8e9897

View File

@@ -1086,7 +1086,8 @@ public class GameAction {
if (c.isAura()) {
// Check if Card Aura is attached to is a legal target
final GameEntity entity = c.getEnchanting();
final SpellAbility sa = c.getSpellPermanent();
final SpellAbility sa = c.getSpells().get(0);;
Target tgt = null;
if (sa != null) {
tgt = sa.getTarget();