Hi, I'm having a little trouble making a spell. Right now I have a spell that makes a dummy cast earthquake on the position of the caster, and I'm trying to figure out how to best go about making earthquake not affect allies. As of right now my trigger removes the debuff earthquake from the caster unit but I feel this is a really gross way of doing it. Any advice on how to do this better or on how to make it not affect allies would be much appreciated!
Here's my absolutely atrocious way of getting earthquake to cast on my unit, I am aware I should use a variable for the dummy due to the function Last created unit being able to pick up something else if someone uses a spell at the same time but lets just ignore that for now.
Here's my absolutely atrocious way of getting earthquake to cast on my unit, I am aware I should use a variable for the dummy due to the function Last created unit being able to pick up something else if someone uses a spell at the same time but lets just ignore that for now.
-
Titanic Slam
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Titanic Slam
-
Actions
- Unit - Create 1 dummy caster for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
- Unit - Add Titanic Slam Effect to (Last created unit)
- Set Caster = (Triggering unit)
- Set TitanicSlamCounter = 0
- Trigger - Turn on Remove Debuff <gen>
- Unit - Order (Last created unit) to Orc Far Seer - Earthquake (Position of (Triggering unit))
- Wait 5.00 seconds
- Unit - Remove (Last created unit) from the game
-
Events
-
Remove Debuff
-
Events
- Time - Every 0.01 seconds of game time
-
Conditions
- TitanicSlamCounter Less than or equal to 500
-
Actions
- Set TitanicSlamCounter = (TitanicSlamCounter + 1)
- Unit - Remove Earthquake buff from Caster
-
Events