mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48: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() {
|
public boolean isTrigger() {
|
||||||
return triggerObj != null;
|
return getTrigger() != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Trigger getTrigger() {
|
public Trigger getTrigger() {
|
||||||
|
if (getParent() != null) {
|
||||||
|
return getParent().getTrigger();
|
||||||
|
}
|
||||||
return triggerObj;
|
return triggerObj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user