Skip to content

Commit

Permalink
[KA] Improved Captain Vrol's Fire Mage Meteors tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
MysteryDragon committed Nov 8, 2021
1 parent 45ed40e commit a904780
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions TrialKynesAegis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,27 @@ function RaidNotifier.KA.OnCombatEvent(_, result, isError, aName, aGraphic, aAct
end
end
-- Vrolsworn Fire Mage's meteors (3 meteors at once)
if (abilityId == buffsDebuffs.vrol_firemage_meteor) then
-- hitValue = 1 for casting or 2250 as the duration of meteor's reaching the targets
if (settings.vrol_firemage_meteor >= 1 and hitValue > 1) then
if (tType == COMBAT_UNIT_TYPE_PLAYER) then
self:StartCountdown(hitValue, GetString(RAIDNOTIFIER_ALERTS_KYNESAEGIS_VROL_FIREMAGE_METEOR), "kynesAegis", "vrol_firemage_meteor", true, 2)
elseif (settings.vrol_firemage_meteor == 2) then
self:StartCountdown(hitValue, GetString(RAIDNOTIFIER_ALERTS_KYNESAEGIS_VROL_FIREMAGE_METEOR_OTHER), "kynesAegis", "vrol_firemage_meteor", false, 2)
end
-- hitValue = 1 for casting or 2250 as the duration of meteor's reaching the targets
if (abilityId == buffsDebuffs.vrol_firemage_meteor and hitValue > 1) then
-- If player is tracking only meteors on himself we don't need to use any tricks
if (settings.vrol_firemage_meteor == 1 and tType == COMBAT_UNIT_TYPE_PLAYER) then
self:StartCountdown(hitValue, GetString(RAIDNOTIFIER_ALERTS_KYNESAEGIS_VROL_FIREMAGE_METEOR), "kynesAegis", "vrol_firemage_meteor", true, 2)
elseif (settings.vrol_firemage_meteor == 2) then
-- There will be several events for each of the targeted players
-- In order to determine if our player himself is meteor's target we will analyze all of them
RaidNotifier.DelayedEventHandler.Add(
"vrol_firemage_meteor",
{ tType = tType },
function(argsBag)
if (argsBag:ContainsArgumentWithValue("tType", COMBAT_UNIT_TYPE_PLAYER)) then
self:StartCountdown(hitValue, GetString(RAIDNOTIFIER_ALERTS_KYNESAEGIS_VROL_FIREMAGE_METEOR), "kynesAegis", "vrol_firemage_meteor", true, 2)
else
self:StartCountdown(hitValue, GetString(RAIDNOTIFIER_ALERTS_KYNESAEGIS_VROL_FIREMAGE_METEOR_OTHER), "kynesAegis", "vrol_firemage_meteor", false, 2)

end
end,
50
)
end
end
elseif (result == ACTION_RESULT_EFFECT_GAINED_DURATION) then
Expand Down

0 comments on commit a904780

Please sign in to comment.