mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
SpellAbility: fix isTrigger
This commit is contained in:
@@ -1077,10 +1077,13 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
}
|
||||
|
||||
public boolean isTrigger() {
|
||||
return triggerObj != null;
|
||||
return getTrigger() != null;
|
||||
}
|
||||
|
||||
public Trigger getTrigger() {
|
||||
if (getParent() != null) {
|
||||
return getParent().getTrigger();
|
||||
}
|
||||
return triggerObj;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user