Vengeance (Tanking Specialization)
Hiya everyone,
I've been looking at writing a small mod to be able to handle the stacking Attack Power buff that tanks get when receiving damage. Has anyone seen any API calls that could give the current Attack Power increase from this buff? Scanning the aura tooltip is an option, but I would prefer not to do this. Thanks |
Maybe it's static and you can multiply the number of stacks with sth.
*errr* you don't. http://cata.wowhead.com/spell=84839 Quote:
|
Unfortunately it does not appear to stack in the normal way.
As each 'stack' is based off the amount of damage taken, then the buff value is extremely dynamic. My guess is that there is a server side calculation, and the client gets told of the new AP value. Tooltip scanning is a nasty cludge, and I'd prefer to have a nice API call. Unfortunately I believe it will not be that easy :( |
If Blizzard has to do it aswell: maybe some hint can be found in FrameXML/BuffFrame.lua, who knows.
Oh...hmm http://www.wowwiki.com/API_GameTooltip_SetUnitAura http://wowprogramming.com/docs/widge...ip/SetUnitAura So the tooltip is actually done server side. But maybe there is a new value in http://wowprogramming.com/docs/api/UnitAura that has the numbers. |
Hmmm, quick google search brought this up:
Quote:
Quote:
So close to something useful, will have to check if it does still exist. |
I've done some testing tonight, and UNIT_AURA does fire on a change of the Attack Power value from the Vengeance buff.
It's fairly simple to read the value by scanning the tooltip, but I would still prefer to have a direct API call to retrieve the value. I'll carry out some further testing when I have more time. |
I'd guess that the differerent "strengths" of the Vengeance buff are actually different spells, in which case you'd be able to distinguish between them using the spellID value returned by UnitAura, without needing to scan the tooltip.
|
Hmm well there is only one value that is for sure, that is the maximum value. The rest can be any value from 0 to max depending on damage taken. Well that is kind of hard to calclulate.
But maybe some info is hidden in the combat text. Try checking that for some info on your vengeance stack maybe there is a value that can be tracked. Code:
func COMBAT_LOG_EVENT_UNFILTERED(event, timestamp, eventType, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, ...) http://www.wowwiki.com/API_COMBAT_LOG_EVENT |
Quote:
|
OK, I've done some more testing and here are the results:
A) GetSpellAuraDescription(spellID) does not exist :( B) The combat log does not provide any useful information (Vengeance does not appear to be added to the combat log :confused:) C) UnitAura does not provide any more information about the Vengeance buff, the returned parameters are:
=========================== So, it looks like tooltip scanning is the only way to get the AP buff value from Vengeance. I've created an oUF element as proof-of-concept : http://github.com/Evilpaul/oUF_VengeanceBar layout code : http://gist.github.com/592615 I'm not sure how much use this will be, but somebody might want to try it out |
I don't see it as something you can plan skill usage around,
so I don't see much point in tracking it, other than curiosity. Tanks will have this scaling AP buff in any long fight. Lots of damage incoming, faster stack to the MaxHP/10 limit, less damage longer ramp up. All in all it's something you can expect to have... I don't see what it offers to know what % you got at any given point. |
Hence why I said proof-of-concept.
The only thing I can see monitoring Vengance to be useful for is a mechanism to know when DPS can start attacking. Tank threat is going to be an issue again, so instead of "wait for 5 sunders" you can now wait until x% Vengeance buff. |
All times are GMT -6. The time now is 08:21 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI