• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Ice Lance bonus damage

Status
Not open for further replies.
Level 5
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.

  • 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
I've also tried it by creating a dummy unit which casts a spell which deals the damage:

  • 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
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
 
Last edited:
Status
Not open for further replies.
Top