- Joined
- Apr 21, 2006
- Messages
- 82
Helloy peeps
i've been doing Ice Lance spell, but got problems now when i tried to add some bonus damage to it.
Here's what it does/should do:
Ice Lance shoots a lance to enemy dealing small amount of damage and if the target is Frozen it will deal 150% extra damage (or fixed amount of damage).
This is what i've but it does not seem to look does the target have "Frozen" buff.
I've also tried it by creating a dummy unit which casts a spell which deals the damage:
Ice Lance is made from Shadow Strike ability.
And please if you see some leaks in it please tell me, im still a bit newbie with leaks =p
i've been doing Ice Lance spell, but got problems now when i tried to add some bonus damage to it.
Here's what it does/should do:
Ice Lance shoots a lance to enemy dealing small amount of damage and if the target is Frozen it will deal 150% extra damage (or fixed amount of damage).
This is what i've but it does not seem to look does the target have "Frozen" buff.
-
Events
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
(Ability being cast) is Equal to Ice Lance
-
-
Actions
-
Set IceCaster = (Casting unit)
-
Set IceCasterPoint = (Position of IceCaster)
-
Set IceLanceTarget = (Target unit of ability being cast)
-
Set IceLancelvl = (Level of Ice Lance for [U]IceCaster[/U])
-
If (All Conditions are True) then do...
-
Conditions
-
(IceLanceTarget has buff Frozen ) Equal to True
-
Then - Actions
-
Set IceLanceDamage = (63.00 x (Real((Level of Ice Lance for IceCaster)))
-
Floating Text - Create floating text that reads (String((Integer(IceLanceDamage)))) above IceLanceTarget with...
-
Floating Text - Set the velocity of (Last created floating text) to 75 towards 90.00 degrees
-
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
-
Unit - Cause IceLanceCaster to damage IceLanceTarget, dealing IceLanceDamage damage of attack type Spells and damage type Cold
-
Unit - Remove Frozen buff from IceLanceTarget
-
Else - Actions
-
-
-
-
-
Events
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
(Ability being cast) is Equal to Ice Lance
-
-
Actions
-
Set IceCaster = (Casting unit)
-
Set IceLanceTarget = (Target unit of ability being cast)
-
Set IceLancelvl = (Level of Ice Lance for [U]IceCaster[/U])
-
If (All Conditions are True) then do...
-
Conditions
-
(IceLanceTarget has buff Frozen ) Equal to True
-
Then - Actions
-
Set IceLanceDamage = (63.00 x (Real((Level of Ice Lance for IceCaster)))
-
Floating Text - Create floating text that reads (String((Integer(IceLanceDamage)))) above IceLanceTarget with...
-
Unit - Create 1 Dummy for Player 1 at IceCasterPoint facing...
-
Set Dummy = (Last created unit)
-
Unit - Order Dummy to Night Elf Warden - Shadow Strike IceLanceTarget
-
Unit - Remove Dummy from the game
-
Floating Text - Set the velocity of (Last created floating text) to 75 towards 90.00 degrees
-
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
-
Unit - Cause IceLanceCaster to damage IceLanceTarget, dealing IceLanceDamage damage of attack type Spells and damage type Cold
-
Unit - Remove Frozen buff from IceLanceTarget
-
Custom script: call RemoveLocation(udg_IceCasterPoint)
-
Else - Actions
-
-
-
-
And please if you see some leaks in it please tell me, im still a bit newbie with leaks =p
Last edited: