I'm working on a self target Ability that gives you a buff for 5 seconds.
I want it to work so that, if you deal damage with a melee attack, the game multiplies the damage by a factor of 4 and then removes the buff. I thought I had it figured out.
The ability works, and gives the Casting hero the buff for the right amount of time, but Whenever I deal melee damage with the buff on the unit, the game crashes.
Here is the trigger:
Any Ideas?
Much appreciated in Advance!
I want it to work so that, if you deal damage with a melee attack, the game multiplies the damage by a factor of 4 and then removes the buff. I thought I had it figured out.
The ability works, and gives the Casting hero the buff for the right amount of time, but Whenever I deal melee damage with the buff on the unit, the game crashes.
Here is the trigger:
Trigger:
- GDDEvent
- Events
- Game - GDD_Event becomes Equal to 0.00
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (GDD_DamageSource has buff Vital Stab (Boolean Buff)) Equal to True
- Then - Actions
- Set Vital_Stab_Damage = (GDD_Damage - (GDD_Damage x 4.00))
- Unit - Cause GDD_DamageSource to damage GDD_DamagedUnit, dealing Vital_Stab_Damage damage of attack type Spells and damage type Normal
- Else - Actions
- If - Conditions
- Game - Display to (All players) the text: ((Name of GDD_DamageSource) + ( has damaged + ((Name of GDD_DamagedUnit) + ( for + (String(GDD_Damage))))))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Any Ideas?
Much appreciated in Advance!