zulrah: Merge nested if statements
This commit is contained in:
@@ -212,26 +212,20 @@ 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))
|
Prayer prayer = instance.getNextPhase().getPrayer();
|
||||||
{
|
|
||||||
if (zulrah.getAnimation() == AnimationID.ZULRAH_PHASE)
|
|
||||||
{
|
|
||||||
Prayer prayer = instance.getNextPhase().getPrayer();
|
|
||||||
|
|
||||||
if (prayer != null)
|
if (prayer != null)
|
||||||
{
|
{
|
||||||
switch (prayer)
|
switch (prayer)
|
||||||
{
|
{
|
||||||
case PROTECT_FROM_MAGIC:
|
case PROTECT_FROM_MAGIC:
|
||||||
soundManager.playSound(Sound.PRAY_MAGIC);
|
soundManager.playSound(Sound.PRAY_MAGIC);
|
||||||
break;
|
break;
|
||||||
case PROTECT_FROM_MISSILES:
|
case PROTECT_FROM_MISSILES:
|
||||||
soundManager.playSound(Sound.PRAY_RANGED);
|
soundManager.playSound(Sound.PRAY_RANGED);
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user