demonicgorilla: Null check

This commit is contained in:
sdburns1998
2019-07-07 06:29:29 +02:00
parent 59070bc36c
commit 1620842c97

View File

@@ -206,7 +206,8 @@ public class DemonicGorillaPlugin extends Plugin
}
boolean correctPrayer =
target == null || // If player is out of memory, assume prayer was correct
attackStyle.equals(protectedStyle);
(attackStyle != null &&
attackStyle.equals(protectedStyle));
if (attackStyle == DemonicGorilla.AttackStyle.BOULDER)
{