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