zulrah: Merge nested if statements
This commit is contained in:
@@ -212,11 +212,7 @@ public class ZulrahPlugin extends Plugin
|
||||
}
|
||||
|
||||
Actor actor = event.getActor();
|
||||
if (config.sounds())
|
||||
{
|
||||
if (zulrah != null && zulrah.equals(actor))
|
||||
{
|
||||
if (zulrah.getAnimation() == AnimationID.ZULRAH_PHASE)
|
||||
if (config.sounds() && zulrah != null && zulrah.equals(actor) && zulrah.getAnimation() == AnimationID.ZULRAH_PHASE)
|
||||
{
|
||||
Prayer prayer = instance.getNextPhase().getPrayer();
|
||||
|
||||
@@ -234,8 +230,6 @@ public class ZulrahPlugin extends Plugin
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onNpcSpawned(NpcSpawned event)
|
||||
|
||||
Reference in New Issue
Block a user