-
Member
Dragonflight (Retail) CastSpellByID For ChargeSpell
A new mode for ChargeSpell has been added to Dragonflight
Code:
local name, text, texture, startTime, endTime, isTradeSkill, notInterruptible, spellID, _, numStages = UnitChannelInfo(unit)
local isChargeSpell = numStages > 0
if isChargeSpell then
endTime = endTime + GetUnitEmpowerHoldAtMaxTime(unit)
end
And there are two control methods, One is to press and hold, pop up to release. The other is to press the first time to hold and press the second time to release.
How to control by the first method through CastSpellByID or CastSpellByName?
Because the binary is confused, So I don't know if these 2 functions have new parameters.
-
Contributor
Last edited by ChrisIsMe; 11-01-2023 at 04:57 PM.
no war
-
Post Thanks / Like - 1 Thanks
DarkLinux (1 members gave Thanks to ChrisIsMe for this useful post)
-
Member
Originally Posted by
ChrisIsMe
You can find the releaseempoweredspell packet from Script_ReleaseAction in IDA. Pretty simple, just pass a pointer to an int of the empowered spell id
Thanks. I found it