Merge branch 'kefnet' into 'master'

God-Eternal Kefnet: Fix NPE

See merge request core-developers/forge!4215
This commit is contained in:
Michael Kamensky
2021-03-18 19:16:23 +00:00

View File

@@ -65,7 +65,7 @@ public class RevealAi extends RevealAiBase {
for (SpellAbility s : c.getBasicSpells()) { for (SpellAbility s : c.getBasicSpells()) {
Spell spell = (Spell) s.copy(ai); Spell spell = (Spell) s.copy(ai);
// timing restrictions still apply // timing restrictions still apply
if (!s.getRestrictions().checkTimingRestrictions(c, s)) if (!spell.getRestrictions().checkTimingRestrictions(c, spell))
continue; continue;
// use hard coded reduce cost // use hard coded reduce cost