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()) {
Spell spell = (Spell) s.copy(ai);
// timing restrictions still apply
if (!s.getRestrictions().checkTimingRestrictions(c, s))
if (!spell.getRestrictions().checkTimingRestrictions(c, spell))
continue;
// use hard coded reduce cost