So here's my spell. I'm trying to get this to not damage the casting unit.
-
Black Mage Meteor
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Meteor
-
Actions
- Set TargetLoc = (Target point of ability being cast)
- Sound - Play GlueScreenMeteorLaunch3 <gen> at 100.00% volume, located at TargetLoc with Z offset 0.00
- Special Effect - Create a special effect at TargetLoc using war3mapImported\ChaosMeteorV3.mdx
- Wait 2.00 seconds
-
Unit Group - Pick every unit in (Units within 225.00 of TargetLoc matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))) and do (Actions)
-
Loop - Actions
- Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 225.00 at TargetLoc, dealing ((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 5.00) damage of attack type Spells and damage type Divine
- Sound - Play GlueScreenMeteorHit3 <gen> at 100.00% volume, located at TargetLoc with Z offset 0.00
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 225.00 of TargetLoc matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))) and do (Actions)
-
Loop - Actions
- Unit - Create 1 Casting Dummy / knockback for (Owner of (Triggering unit)) at TargetLoc facing Default building facing degrees
- Unit - Add Knockback to (Last created unit)
- Unit - Set level of Knockback for (Last created unit) to 1
- Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
-
Loop - Actions
- Custom script: call RemoveLocation (udg_TargetLoc)
-
Events