mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Simple one-line implementation of getTriggeringAbility
This commit is contained in:
@@ -527,11 +527,7 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
}
|
||||
|
||||
public SpellAbility getTriggeringAbility() {
|
||||
SpellAbility trigSa = this;
|
||||
if (!trigSa.isTrigger()) {
|
||||
trigSa = trigSa.getRootAbility();
|
||||
}
|
||||
return trigSa;
|
||||
return this.isTrigger() ? this : this.getRootAbility();
|
||||
}
|
||||
|
||||
public Map<String, Object> getTriggeringObjects() {
|
||||
|
||||
Reference in New Issue
Block a user