Author: Omega
Date: Tue Jul 13 21:48:39 CEST 2010
Revision: 4335
Log:

#ICC/Lich King: Redid last to use syncing instead do to talent check limitations. also made similar change to rotface kiting

Updated
trunk/DBM-Icecrown/TheFrozenThrone/LichKing.lua
Updated
trunk/DBM-Icecrown/ThePlagueworks/Rotface.lua

trunk/DBM-Icecrown/TheFrozenThrone/LichKing.lua
Action: modified
Old revision: 4334
Old date: 2010-07-13 18:58:54 UTC

@@ -426,12 +426,12 @@
if mod.Options.YellOnValk then
SendChatMessage(L.YellValk, "SAY")
end
+ if mod:IsHealer() then
+ if isPAL then
+ mod:SendSync("PALGrabbed", UnitName("player"))
+ elseif isPRI then
+ mod:SendSync("PRIGrabbed", UnitName("player"))
end
- if UnitName("raid"..i) == mod:IsHealer() then
- if isPAL and self.Options.specWarnHealerGrabbed then
- specWarnPALGrabbed:Show(UnitName("raid"..i))
- elseif isPRI and self.Options.specWarnHealerGrabbed then
- specWarnPRIGrabbed:Show(UnitName("raid"..i))
end
end
if mod.Options.AnnounceValkGrabs and DBM:GetRaidRank() > 0 then
@@ -567,6 +567,14 @@
self:SetIcon(target, 7, 5)
end
end
+ elseif msg == "PALGrabbed" then
+ if self.Options.specWarnHealerGrabbed then
+ specWarnPALGrabbed:Show(target)
+ end
+ elseif msg == "PRIGrabbed" then
+ if self.Options.specWarnHealerGrabbed then
+ specWarnPRIGrabbed:Show(target)
+ end
elseif msg == "DefileOn" then
if not self.Options.BypassLatencyCheck then
warnDefileCast:Show(target)


trunk/DBM-Icecrown/ThePlagueworks/Rotface.lua
Action: modified
Old revision: 4334
Old date: 2010-07-13 18:58:54 UTC

@@ -159,29 +159,33 @@
function mod:SPELL_DAMAGE(args)
if args:IsSpellID(69761, 71212, 73026, 73027) and args:IsPlayer() then
specWarnRadiatingOoze:Show()
- elseif args:GetDestCreatureID() == 36899 and args:IsSrcTypePlayer() == isKiter then --Tank/Hunter attacking big ooze
- if not args:IsPlayer() then
- if self.Options.TankArrow then
- DBM.Arrow:ShowRunTo(args.sourceName, 0, 0)
+ elseif args:GetDestCreatureID() == 36899 and args:IsSrcTypePlayer() == UnitName("player") then
+ if isKiter then --Tank/Hunter attacking big ooze
+ self:SendSync("OozeKiter", UnitName("player"))
end
end
end
-end

function mod:SWING_DAMAGE(args)
if args:IsPlayer() and args:GetSrcCreatureID() == 36897 then --Little ooze hitting you
specWarnLittleOoze:Show()
- elseif args:GetDestCreatureID() == 36899 and args:IsSrcTypePlayer() == isKiter then --Tank/Hunter attacking big ooze
- if not args:IsPlayer() then
- if self.Options.TankArrow then
- DBM.Arrow:ShowRunTo(args.sourceName, 0, 0)
+ elseif args:GetDestCreatureID() == 36899 and args:IsSrcTypePlayer() == UnitName("player") then
+ if isKiter then --Tank/Hunter attacking big ooze
+ self:SendSync("OozeKiter", UnitName("player"))
end
end
end
-end

function mod:CHAT_MSG_MONSTER_YELL(msg)
if msg:find(L.YellSlimePipes1) or msg:find(L.YellSlimePipes2) then
self:WallSlime()
end
end
+
+function mod:OnSync(msg, target)
+ if msg == "OozeKiter" then
+ if self.Options.TankArrow then
+ DBM.Arrow:ShowRunTo(target, 0, 0)
+ end
+ end
+end
\ No newline at end of file