Antares
Spell Reviewer
- Joined
- Dec 13, 2009
- Messages
- 983
Hello,
I'm trying to find a way to get a unit's attack cooldown, including all buffs, items, and agility bonuses. The function added with the new natives "BlzGetUnitAttackCooldown" seems to only return the value set in the Cooldown Time field. It does the same thing as
so I don't really see the point of this function. If there's no native for it or an easy way to get it, I might have to brute-force it by checking all items and buffs that grant attack speed.
I'm trying to calculate the attack delay of a unit, so that I can trigger something exactly on the projectile launch of the attack. If there's an easy way to do that with the new natives, this would be redundant, although I will probably still need the accurate attack cooldown for other systems later.
Thanks!
I'm trying to find a way to get a unit's attack cooldown, including all buffs, items, and agility bonuses. The function added with the new natives "BlzGetUnitAttackCooldown" seems to only return the value set in the Cooldown Time field. It does the same thing as
JASS:
BlzGetUnitWeaponRealField(whichUnit , UNIT_WEAPON_RF_ATTACK_BASE_COOLDOWN , 0)
I'm trying to calculate the attack delay of a unit, so that I can trigger something exactly on the projectile launch of the attack. If there's an easy way to do that with the new natives, this would be redundant, although I will probably still need the accurate attack cooldown for other systems later.
Thanks!