mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Fixing Auras requesting SpellPermanent and causing a crash, since Auras no longer use the SpellPermanent class
This commit is contained in:
@@ -1086,7 +1086,8 @@ public class GameAction {
|
|||||||
if (c.isAura()) {
|
if (c.isAura()) {
|
||||||
// Check if Card Aura is attached to is a legal target
|
// Check if Card Aura is attached to is a legal target
|
||||||
final GameEntity entity = c.getEnchanting();
|
final GameEntity entity = c.getEnchanting();
|
||||||
final SpellAbility sa = c.getSpellPermanent();
|
final SpellAbility sa = c.getSpells().get(0);;
|
||||||
|
|
||||||
Target tgt = null;
|
Target tgt = null;
|
||||||
if (sa != null) {
|
if (sa != null) {
|
||||||
tgt = sa.getTarget();
|
tgt = sa.getTarget();
|
||||||
|
|||||||
Reference in New Issue
Block a user