Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OIDs for Menenius module and fix red mine detonation #351

Merged
merged 2 commits into from
May 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading