demonicgorilla: Null check
This commit is contained in:
@@ -206,7 +206,8 @@ public class DemonicGorillaPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
boolean correctPrayer =
|
boolean correctPrayer =
|
||||||
target == null || // If player is out of memory, assume prayer was correct
|
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)
|
if (attackStyle == DemonicGorilla.AttackStyle.BOULDER)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user