mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Merge branch 'ghastNPE' into 'master'
Fix Shambling Ghast NPE See merge request core-developers/forge!6469
This commit is contained in:
@@ -116,8 +116,13 @@ public class ForgeScript {
|
||||
}
|
||||
for (final Trigger trig : cardState.getTriggers()) {
|
||||
SpellAbility sa = trig.getOverridingAbility();
|
||||
if (sa != null && sa.isManaAbility()) {
|
||||
return true;
|
||||
if (sa != null) {
|
||||
if (!sa.isTrigger()) {
|
||||
sa.setTrigger(trig);
|
||||
}
|
||||
if (sa.isManaAbility()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -64,9 +64,6 @@ public abstract class TriggerReplacementBase extends CardTraitBase implements II
|
||||
* @return the overridingAbility
|
||||
*/
|
||||
public SpellAbility getOverridingAbility() {
|
||||
if (overridingAbility != null && !overridingAbility.isTrigger() && this instanceof Trigger) {
|
||||
overridingAbility.setTrigger((Trigger) this);
|
||||
}
|
||||
return this.overridingAbility;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user