There we go everyone. I've removed the 5.0 version and replaced it with the 5.1 version in the original release post!
Bug should be completely fixed now and working as it should. :P
There we go everyone. I've removed the 5.0 version and replaced it with the 5.1 version in the original release post!
Bug should be completely fixed now and working as it should. :P
why most profile writers like to use CheckInteractDistance over IsSpellInRange?
I was trying to write Shadowflame ability to a friend of mine but i found out that it does not always work right for some targets like Arm Tentacle or Ultraxion.using CheckInteractDistance
so either i need to write a function like SpecialAggro on Sheuron's profile for these special targets or use IsSpellInRange but i want to know if there is a reason to not using it?
Aaaaaaaand, it still fails with a nil value. I can't figure this shit out either. I might just leave my mangle the way it is lol.
EDIT* OK, for some reason, itwill not work if I make it into a .lua. But when I just copy and paste it all into the mangle code box, it works. What gives :confused: lol
Last edited by firepong; 03-17-2012 at 01:42 AM.
Here's the updated/working Bleed code.
The table/functions. I have this in PQR_functionBleeds.lua in the Data directory:
This is the cat Mangle ability code I've been using. Note, this bit is ONLY intended to apply a bleed if there is none, or refresh yours if it exists, and it will also require the timer variables I have loaded in another ability (included here for ease... I hope it works when copy/pasted, if not... eh, this is something I'm still working on):Code:local Bleeds = { 16511, -- Rogue, Hemorrhage 33876, -- Druid, Cat: Mangle 33878, -- Druid, Bear: Mangle 35290, -- Hunter Pet: Gore 46857, -- Warrior, Trauma 50271, -- Hunter Pet: Tendon Rip 57386, -- Hunter Pet: Stampede } function PQR_BleedDebuff(unit) for i=1,#Bleeds do if UnitDebuffID(unit,Bleeds[i]) then return true end end return false end function PQR_PlayerBleedDebuff(unit) for i=1,#Bleeds do if UnitDebuffID(unit,Bleeds[i],"player") then return true end end return false end
Edited to make a few changes. I'm sure I could simplify this further, but right now it works and it has given me some ideas while working on it, so... we'll see how it goes!Code:-- Variables local PQR_BleedDebuff = PQR_BleedDebuff("target") local PQR_PlayerBleedDebuff = PQR_PlayerBleedDebuff("target") local energyRegen = GetPowerRegen() local MangleCost = select(4,GetSpellInfo(33876)) if MangleCost ~= 0 then local MangleRefresh = ((MangleCost/energyRegen)+2) else MangleRefresh = 3 end if(PQR_BleedDebuff == true and PQR_PlayerBleedDebuff == false) then return false end if(PQR_PlayerBleedDebuff == true) then local CatManTimer = select(7, UnitBuffID( "target", 33876,"player")) local BearManTimer = select(7, UnitBuffID( "target", 33878,"player")) if (CatManTimer ~= nil and (CatManTimer - GetTime() < MangleRefresh)) then return true end if (BearManTimer ~= nil and (BearManTimer - GetTime() < MangleRefresh)) then return true end else if UnitExists("target") then return true end end
My next challenge is that I need to figure out a way to "snapshot" a certain stat (or stats) at the time Rip is applied. I've got an idea, but I'll need to play around with some stuff and test before I can confirm.
Last edited by Deva; 03-17-2012 at 03:31 AM.
Hi Mentally,
I just tried this out now in DS10 normal and on Hagara, as soon as I targeted the lightning add, it no longer cast spells and even turning the rotation off and on again didn't fix it... I tried again after restarting the game and the same thing happened.
Awesome work though
EDIT: same issue when targeting drakes on Blackhorn and part of the bug has it trying to cast mass dispel when there is really no need.
Last edited by wooloveshacks; 03-17-2012 at 05:36 AM.
Here is my Pyroblast code:
What it doest is checking for combusions CD and if its between 8 to 1 sec before Combustion it waits with pyroblast so we can have that DoT ticking when combustion is ready but furthermost it can give nice crits on pyroblast to get a good Combustion going.Code:local start, duration, enabled = GetSpellCooldown(11129); if not UnitChannelInfo("player") and FireballCrit == 1 then if duration > 8 or duration < 1 then CastSpellByName(tostring(GetSpellInfo(92315))) --print("Mage Functions FireBall CRITTED. " ..Fireballdamage) return true end end
I also have a check for Fireballcrit but you can remove that function.
This is the best program I've ever used. Keep up the good work! Big thanks to you Xelper, Bu_Ba, Mentaly for the great profiles! And thanks to all who share their awesome profiles![]()