Thread Tools Display Modes
08-04-14, 05:29 AM   #1
Lybrial
A Flamescale Wyrmkin
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 120
Getting stacks from death strike

Hi,

i need a lua code which return the stacks on death strike.
It is not a buff so i cant use UnitBuff i guess. The stacks
on death strike are just showing how much the next
death strike will heal.

So how can i get the stack information from death strike?
  Reply With Quote
08-04-14, 06:42 AM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I don't have a death knight, but based on the spell's description, there are no "stacks" of anything to be tracked; you'd need to keep a running total of damage sustained by the player from non-player over the last 5 seconds, by watching the combat log.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
08-04-14, 08:51 AM   #3
jeruku
A Cobalt Mageweaver
 
jeruku's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 223
Did you by any chance mean the buff Scent of Blood?
  Reply With Quote
08-04-14, 10:23 AM   #4
Lybrial
A Flamescale Wyrmkin
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 120
Originally Posted by jeruku View Post
Did you by any chance mean the buff Scent of Blood?
Oh right! Thx man!
  Reply With Quote
08-04-14, 11:40 AM   #5
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
The GetSpellCount(49998) returns how many charges you have.

Note that it returns 0 at no charges, even if you can use the spell at that moment.
__________________
Profile: Curse | Wowhead
  Reply With Quote
08-04-14, 11:43 AM   #6
Lybrial
A Flamescale Wyrmkin
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 120
Originally Posted by Vlad View Post
The GetSpellCount(49998) returns how many charges you have.

Note that it returns 0 at no charges, even if you can use the spell at that moment.
Thx for the hint.

I solved it with that code:

Code:
function()
    local stacks = select(4, UnitBuff("player","Blutgeruch"))
    return stacks or 0;
end
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Getting stacks from death strike

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off