im trying to make a spell like omnislash BUT in stead of changing unit it attacks the same unit evry time and in stead of damaging it steals the mana from the unit adds the mana to the triggering unit and the spell can only be used on units with mana and very small damage
after the spell is finished the unit teles back to where he first started casting the ability
lvl 1: strikes the unit 2 times steals 20 mana and damages 6 per hit
lvl 2: strikes the unit 3 times steals 25 mana and damages 8 per hit
lvl 3: strikes the unit 4 times steals 30 mana and damages 10 per hit
lvl 4: strikes the unit 5 times steals 45 mana and damages 12 per hit
lvl 5: strikes the unit 6 times steals 50 mana and damages 15 per hit
im also trying for the spell to be Mui or at least Mpi
this is all iv got for the trigger atm
...the part for each strike not including the mana and animation
after the spell is finished the unit teles back to where he first started casting the ability
lvl 1: strikes the unit 2 times steals 20 mana and damages 6 per hit
lvl 2: strikes the unit 3 times steals 25 mana and damages 8 per hit
lvl 3: strikes the unit 4 times steals 30 mana and damages 10 per hit
lvl 4: strikes the unit 5 times steals 45 mana and damages 12 per hit
lvl 5: strikes the unit 6 times steals 50 mana and damages 15 per hit
im also trying for the spell to be Mui or at least Mpi
this is all iv got for the trigger atm
...the part for each strike not including the mana and animation
Code:
mana tazer
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to mana tazer
Actions
Set tazer_caster_loc = (Position of (Triggering unit))
Unit - Move (Triggering unit) instantly to (Position of (Target unit of ability being cast)), facing (Position of (Target unit of ability being cast))
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (4.00 + (2.00 x (Real((Level of mana tazer for (Triggering unit)))))) damage of attack type Spells and damage type Normal
Unit - Set mana of (Target unit of ability being cast) to (-15.00 - (5.00 x (Real((Level of mana tazer for (Triggering unit))))))
Unit - Set mana of (Triggering unit) to (15.00 + (5.00 x (Real((Level of mana tazer for (Triggering unit))))))