Hey everyone, I am making a game where you have a spell which replaces attack, which is shoot!
The spell is meant to fire out a bullet (Shockwave) and hit any enemys in the way, then stopping the bullet.
But what it does is, is go straight through enemys without dealing any damage at all.
I have based my spell off Shockwave with no damage just cooldown and range. But I am using this trigger for the spell to deal damage.
Can anyone tell me whats wrong with my code?
The spell is meant to fire out a bullet (Shockwave) and hit any enemys in the way, then stopping the bullet.
But what it does is, is go straight through enemys without dealing any damage at all.
I have based my spell off Shockwave with no damage just cooldown and range. But I am using this trigger for the spell to deal damage.
Code:
Shoot Pistol Code
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to [|cffffcc00A|r] Shoot (Pistol)
Actions
Wait 1.00 seconds
Unit Group - Pick every unit in (Units within 100.00 of (Target point of ability being cast)) and do (Actions)
Loop - Actions
Unit - Cause (Casting unit) to damage (Picked unit), dealing (Real((Strength of (Casting unit) (Include bonuses)))) damage of attack type Normal and damage type Normal
Can anyone tell me whats wrong with my code?