Skip to content

Commit a5e540d

Browse files
committed
[lua] Stop Ul'hpemde from diving
1 parent 666feae commit a5e540d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/enum/mob_pool.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ xi.mobPool =
2525
INGURGITATOR = 2081, -- Fission (Number of Adds)
2626
KING_VINEGARROON = 2262, -- KV poison on Wild Rage
2727
NIDHOGG = 2840, -- Nidhogg's stronger hurricane wing
28+
HPEMDE_DIVING = 2976, -- Om'hpemde in south half of Al'Taieu: the only hpemde that dive
2829
OSSCHAART = 3064, -- Osschaart's charm duration.
2930
PEALLAIDH = 3109, -- Peallaidh's chigoe pets
3031
PEPPER = 3116, -- BCNM20 Charming Trio, Absorbing Kiss
@@ -50,7 +51,6 @@ xi.mobPool =
5051
AMNAF_PSYCHEFLAYER = 5310, -- Reset enmity on sleepga
5152
SELHTEUS_DAWN = 5417, -- Selhteus (CoP 8-4 Dawn)
5253
FAHRAFAHR_THE_BLOODIED = 6750, -- Reset Enmity on Drop Hammer
53-
HPEMDE_NO_DIVING = 7033, -- Hpemde that don't dive, such as those in the north end of Al'Taieu
5454
EOZDEI_LEFT = 7095, -- Eo'zdei left rotation
5555
AWZDEI_LEFT = 7096, -- Aw'zdei left rotation
5656
AWZDEI_FAST_R = 7097, -- Aw'zdei fast right rotation

scripts/mixins/families/hpemde.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ local function dive(mob)
1212
mob:setAutoAttackEnabled(false)
1313
mob:setMobAbilityEnabled(false)
1414

15-
-- Om'hpedme in north half of Al'Taieu do not dive or become untargetable
16-
if mob:getPool() ~= xi.mobPool.HPEMDE_NO_DIVING then
15+
-- Om'hpedme in south half of Al'Taieu dive and become untargetable
16+
if mob:getPool() == xi.mobPool.HPEMDE_DIVING then
1717
mob:hideName(true)
1818
mob:setUntargetable(true)
1919
mob:setAnimationSub(5)
@@ -58,7 +58,7 @@ g_mixins.families.hpemde = function(hpemdeMob)
5858
end
5959

6060
if
61-
mob:getPool() ~= xi.mobPool.HPEMDE_NO_DIVING and
61+
mob:getPool() == xi.mobPool.HPEMDE_DIVING and
6262
mob:getAnimationSub() ~= 5
6363
then
6464
dive(mob)

0 commit comments

Comments
 (0)