• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Spell won't work as intended

Status
Not open for further replies.
Level 7
Joined
Oct 10, 2009
Messages
111
  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
    • (Ability being cast) Equal to Shadow Souls
  • Actions
    • Set SS_caster_target[0] = (Casting unit)
    • Set SS_caster_target[1] = (Targeted unit)
    • Set SS_damage_leech[0] = (120 + (Intelligence of SS_caster_target[0] (Include bonuses)))
    • Set SS_damage_leech[1] = (20 + (Intelligence of SS_caster_target[0] (Exclude bonuses)))
    • Set SS_points[0] = (Position of SS_caster_target[0])
    • Set SS_points[1] = (Position of SS_caster_target[1])
    • Sound - Play HeroLichYesAttack1 <gen> at 100.00% volume, attached to SS_caster_target[0]
    • Special Effect - Create a special effect attached to the chest of SS_caster_target[0] using Abilities\Spells\Items\TomeOfRetraining\TomeOfRetrainingCaster.mdl
    • Special Effect - Destroy (Last created special effect)
    • Special Effect - Create a special effect at SS_points[1] using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
    • Special Effect - Destroy (Last created special effect)
    • Unit - Cause SS_caster_target[0] to damage SS_caster_target[1], dealing (Real(SS_damage_leech[0])) damage of attack type Spells and damage type Shadow Strike
    • Unit - Set life of SS_caster_target[0] to ((Life of SS_caster_target[0]) + (Real(SS_damage_leech[1])))
    • Special Effect - Create a special effect attached to the overhead of SS_caster_target[0] using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
    • Special Effect - Destroy (Last created special effect)
    • Custom script: call RemoveLocation(udg_SS_points[0])
    • Custom script: call RemoveLocation(udg_SS_points[1])
Spell does heal as intended and every special effect works, but it doesn't deal damage. It is based on "Chain of Lighting" spell and the number of targets is 3. I know that it has something to to with targets variables but can't click what. Thanks in advance.
 
Status
Not open for further replies.
Top