Skip to content

Commit

Permalink
Merge pull request #351 from sourpuh/master
Browse files Browse the repository at this point in the history
Add OIDs for Menenius module and fix red mine detonation
  • Loading branch information
awgil authored May 5, 2024
2 parents c09e7f2 + 29b2a05 commit ae0b601
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
namespace BossMod.Shadowbringers.Foray.Duel.Duel5Menenius;

public enum OID : uint
{
Boss = 0x31C4,
Helper = 0x233C,
}

public enum AID : uint
{
AutoAttack = 6497,
Expand All @@ -9,8 +15,9 @@ public enum AID : uint
ActivateBlueMine = 23888,
DetonateBlueMine = 23890,
ActivateRedMine = 23889,
DetonateRedMine = 0x5D41,
DetonateRedMine = 23891,
IndiscriminateDetonation = 23892,
Explosion = 23873,
GigaTempest = 23875,
GigaTempestLargeStart = 0x5D44,
GigaTempestLargeMove = 0x5D46,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public override void OnEventCast(Actor caster, ActorCastEvent spell)
{
_mines.Add(new(_shapeTrigger, caster.Position, Color: ArenaColor.Trap));
}
if ((AID)spell.Action.ID is AID.DetonateRedMine)
if ((AID)spell.Action.ID is AID.DetonateRedMine or AID.Explosion)
{
_mines.RemoveAll(t => t.Origin.AlmostEqual(caster.Position, 1));
}
Expand Down

0 comments on commit ae0b601

Please sign in to comment.