function FuBar_Mail:SpecialEvents_MailReceived()
pendmail = pendmail + 1
self.db.char.new, self.db.char.total = self.db.char.new + 1, self.db.char.total + 1
if checked then self.db.char.total = GetInboxNumItems() + self.db.char.new end
if self.db.profile.playsounds then PlaySoundFile(files.soundpath) end
if self.db.profile.chatalerts then self:Print(L["New Mail Received (%d/%d)"], self.db.char.new, self.db.char.total) end
self:Update()
end
With
function FuBar_Mail:SpecialEvents_MailReceived()
if not messagenum then messagenum = 1 end
if messagenum < 2 then
pendmail = pendmail + 1
self.db.char.new, self.db.char.total = self.db.char.new + 1, self.db.char.total + 1
if checked then self.db.char.total = GetInboxNumItems() + self.db.char.new end
if self.db.profile.playsounds then PlaySoundFile(files.soundpath) end
if self.db.profile.chatalerts then self:Print(L["New Mail Received (%d/%d)"], self.db.char.new, self.db.char.total) end
self:Update()
messagenum = messagenum + 1
else
messagenum = 1
end
end
There's probably a better way to fix it but that should work for now.
I've uploaded a new version which should fix the crashing problem, me and another mage both tested it and it wasn't causing as to crash anymore so it should be good now.
I'd like to know if there is a way to detect a specific debuff and a target, and if there is how would I go about doing it.
I have a mod which announces when you sheep a target but I would like to check and see if the target is already sheeped and only announce if it is not.
0
0
That would be me, wanted to make sure it really worked before commiting it, seems that it does though.
0
Replace
With
There's probably a better way to fix it but that should work for now.
0
If you still have any problems let me know.
0
I have a mod which announces when you sheep a target but I would like to check and see if the target is already sheeped and only announce if it is not.
0
Currently Supports:
Polymorph
Counterspell
Slow
Portals
Bug Reports and Suggestions can be posted in this thread
Download MageAnnounce