mirror of
https://github.com/brues-code/SuperCleveRoidMacros.git
synced 2026-09-16 03:38:00 +00:00
feat: add myspellhaste conditional (#4)
* feat: add myspellhaste conditional * review: fix myspellhaste proxy fallback, document it, register with macrocheck --------- Co-authored-by: Brues <5278969+brues-code@users.noreply.github.com>
This commit is contained in:
@@ -286,6 +286,15 @@ function API.GetSpellBonusHealing()
|
||||
return GetSpellBonusHealing()
|
||||
end
|
||||
|
||||
-- Spell haste for `unit` as a percentage: 0 unhasted, positive when casts are
|
||||
-- sped up, negative while slowed (Curse of Tongues). 0 for a unit that doesn't
|
||||
-- resolve. Vanilla has no haste API at all -- ClassicAPI derives this from the
|
||||
-- UNIT_MOD_CAST_SPEED descriptor field the server folds into the cast time, so
|
||||
-- it's exact and needs no nampower GetUnitField dependency.
|
||||
function API.UnitSpellHaste(unit)
|
||||
return UnitSpellHaste(unit)
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- Unit Health
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user