September 29, 20169 yr Sidewinders (mm hunter) have 2 stacks, and i need the condition to dont let reach 2 stacks, always cast when reach 2 stacks. or even better, cast it when is about to reach 2 stacks.
September 29, 20169 yr http://wrobot.eu/forums/topic/3951-sidewinders/?do=findComment&comment=18488 or use spell id http://wrobot.eu/forums/topic/3573-snippets-c-codes-for-fight-classes/?do=findComment&comment=16509
September 29, 20169 yr Author 2 hours ago, Droidz said: http://wrobot.eu/forums/topic/3951-sidewinders/?do=findComment&comment=18488 or use spell id http://wrobot.eu/forums/topic/3573-snippets-c-codes-for-fight-classes/?do=findComment&comment=16509 Dont work, because it checks the buff on your character, not the stack of the skill on your skill bar.
September 29, 20169 yr GetSpellCharges do, what you want. Its not difficult to check if there are 2 charges. But it could very difficult to check, if you used one before (and want now used the second one). With my Sub-Rogue i can check a buff (31223) which exist 5 sec's longer then shadowdance (185313). (but only if a special talent used) local spellname=GetSpellInfo(36554) --[[ Shadowstep ]] if UnitExists("target") and not UnitIsFriend("player", "target") and (IsSpellInRange(spellname,"target")==1) and (UnitHealth("target")>1) then local currentCharges, maxCharges, cooldownStart, cooldownDuration = GetSpellCharges(185313) local now=GetTime(); if (currentCharges>=2) or ((UnitBuff("player",GetSpellInfo(31223))~=nil) and (currentCharges~=0)) then result=true --[[ Stealth, Shadow Dance or Subterfuge ]] if IsStealthed() or (UnitBuff("player",GetSpellInfo(185313))~=nil) or (UnitBuff("player",GetSpellInfo(108208))~=nil) then result=false end end end
Create an account or sign in to comment