- Joined
- Oct 10, 2009
- Messages
- 439
Hey guys!
So, I'm using a spell based off of 'Chemical Rage' - I'm using Jass to reduce the cooldown of this ability forever by 1 second. The problem is that it crashes the game when I cast it next. Got any ideas?
So, I'm using a spell based off of 'Chemical Rage' - I'm using Jass to reduce the cooldown of this ability forever by 1 second. The problem is that it crashes the game when I cast it next. Got any ideas?
JASS:
// Reduce the cooldown of the ultimate ability
set levelOfAbility = GetUnitAbilityLevel(this.target, SPELL_E_ID)
set cooldown = BlzGetUnitAbilityCooldown(this.target, SPELL_E_ID, levelOfAbility)
if cooldown - this.getCooldownReduction() > 1 then
call BlzSetUnitAbilityCooldown(this.target, SPELL_E_ID, levelOfAbility, cooldown - this.getCooldownReduction())
else
call BlzSetUnitAbilityCooldown(this.target, SPELL_E_ID, levelOfAbility, 1)
endif
Last edited by a moderator: