forked from awgil/ffxiv_bossmod
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #570 from FFXIV-CombatReborn/mergeWIP
fixed absolute virtue bug, merge vbm
- Loading branch information
Showing
4 changed files
with
18 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,16 @@ | ||
namespace BossMod.Endwalker.Trial.T02Hydaelyn; | ||
|
||
class Exodus(BossModule module) : BossComponent(module) | ||
class Exodus(BossModule module) : Components.RaidwideInstant(module, ActionID.MakeSpell(AID.Exodus), 7.2f) | ||
{ | ||
private int _numCrystalsDestroyed; | ||
private DateTime _activation; | ||
|
||
public override void AddGlobalHints(GlobalHints hints) | ||
{ | ||
if (_activation != default) | ||
hints.Add("Raidwide"); | ||
} | ||
|
||
public override void AddAIHints(int slot, Actor actor, PartyRolesConfig.Assignment assignment, AIHints hints) | ||
{ | ||
if (_activation != default) | ||
hints.PredictedDamage.Add((Raid.WithSlot(false, true, true).Mask(), _activation)); | ||
} | ||
|
||
public override void OnActorDestroyed(Actor actor) | ||
{ | ||
if ((OID)actor.OID == OID.CrystalOfLight) | ||
{ | ||
++_numCrystalsDestroyed; | ||
if (_numCrystalsDestroyed == 6) | ||
_activation = WorldState.FutureTime(7.2f); | ||
Activation = WorldState.FutureTime(7.2f); | ||
} | ||
} | ||
|
||
public override void OnEventCast(Actor caster, ActorCastEvent spell) | ||
{ | ||
if ((AID)spell.Action.ID == AID.Exodus) | ||
_activation = default; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters