From 8f38028b9ebc4f444bebbe01b39542b942a924f1 Mon Sep 17 00:00:00 2001 From: XP Date: Sat, 7 Oct 2023 14:57:23 -0700 Subject: [PATCH] Ex7 cleaves cleanup --- .../xivsupport/events/triggers/duties/ewex/EX7.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/triggers/triggers-ew/src/main/java/gg/xp/xivsupport/events/triggers/duties/ewex/EX7.java b/triggers/triggers-ew/src/main/java/gg/xp/xivsupport/events/triggers/duties/ewex/EX7.java index 8e57e84ab22c..8e1f27ea1228 100644 --- a/triggers/triggers-ew/src/main/java/gg/xp/xivsupport/events/triggers/duties/ewex/EX7.java +++ b/triggers/triggers-ew/src/main/java/gg/xp/xivsupport/events/triggers/duties/ewex/EX7.java @@ -325,14 +325,10 @@ else if (!state.playerJobMatches(Job::isTank)) { MapEffectEvent.class, mee -> mee.getFlags() == 0x20001, (e1, s) -> { var cast = s.waitEvent(AbilityCastStart.class, acs -> acs.abilityIdMatches(0x8B82)); - if (e1.getIndex() == 2) { - s.updateCall(dimensionalCleaveNorth, cast); - } - else if (e1.getIndex() == 3){ - s.updateCall(dimensionalCleaveMiddle, cast); - } - else { - s.updateCall(dimensionalCleaveSouth, cast); + switch ((int) e1.getIndex()) { + case 2 -> s.updateCall(dimensionalCleaveNorth, cast); + case 3 -> s.updateCall(dimensionalCleaveMiddle, cast); + case 4 -> s.updateCall(dimensionalCleaveSouth, cast); } }); }