Author: Vampik
Date: Mon Mar 01 22:29:47 CET 2010
Revision: 3731
Log:

Fixed heroic Putricide lua errors and logic

Updated
trunk/DBM-Icecrown/ThePlagueworks/Putricide.lua

trunk/DBM-Icecrown/ThePlagueworks/Putricide.lua
Action: modified
Old revision: 3730
Old date: 2010-03-01 21:23:42 UTC

@@ -139,7 +139,7 @@
for i=1, GetNumRaidMembers(), 1 do
if not UnitIsUnit("player", "raid"..i) then
temprange = DBM.RangeCheck:GetDistance("raid"..i, myX, myY)
- if temprange > 0 and temprange < 30 and temprange < mydistance then
+ if temprange and temprange < 30 and (temprange < mydistance or mydistance == 0)then
if UnitHealth("raid"..i) > 5000 and not isDebuffed("raid"..i) then -- don't acquire targets with debuffs like "Plage Sickness", Red/Green Slime,..
mytarget = "raid"..i
mydistance = temprange
@@ -299,7 +299,7 @@
elseif args:IsSpellID(72855, 72856) then -- Unbound Plague
timerUnboundPlague:Stop(args.destName)
if args:IsPlayer() then
- specWarnUnboundPlague:Unschedule()
+ specWarnUnboundPlague:Cancel()
self:UnscheduleMethod("AcquireTargetForUnboundPlague")
end
if self.Options.UnboundPlagueIcon then