I've got a problem with a spell called Face Smash that I'm trying to fix, the spell is based on channel and originally made by skyblade333 (although it's edited by me, the "guy version" is made by him) Help is really appreciated.
I also attached the map into the post.
Thanks in advance,
/Murre
Base Trigger:
Periodic Trigger:
Turn Off-Trigger:
I also attached the map into the post.
Thanks in advance,
/Murre
Base Trigger:
Trigger:
- Face Smash
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Face Smash (channel version, by me)
- Actions
- Set FaceSmash_CasterPoint = (Position of (Triggering unit))
- Set FaceSmash_Target = (Target unit of ability being cast)
- Set FaceSmash_CasterUnit = (Triggering unit)
- Unit - Create 1 dummyUnit for (Owner of FaceSmash_CasterUnit) at (Position of FaceSmash_CasterUnit) facing Default building facing degrees
- Set FaceSmash_DummyUnit = (Last created unit)
- Unit - Add a 4.00 second Generic expiration timer to (Last created unit)
- Unit - Add Face smash stun to FaceSmash_DummyUnit
- Unit - Set level of Face smash stun for FaceSmash_DummyUnit to (Level of Face Smash (channel version, by me) for FaceSmash_CasterUnit)
- Unit - Order FaceSmash_DummyUnit to Human Mountain King - Storm Bolt FaceSmash_Target
- Trigger - Turn on Face Smash Periodic <gen>
- Countdown Timer - Start FaceSmash_Timer as a One-shot timer that will expire in 4.00 seconds
- Events
Periodic Trigger:
Trigger:
- Face Smash Periodic
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- (FaceSmash_Target is dead) Equal to True
- Actions
- Unit - Cause FaceSmash_DummyUnit to damage FaceSmash_Target, dealing 100.00 damage of attack type Normal and damage type Normal
- Animation - Play FaceSmash_CasterUnit's attack animation
- Events
Turn Off-Trigger:
Trigger:
- Face Smash End
- Events
- Time - FaceSmash_Timer expires
- Conditions
- Actions
- Trigger - Remove Face Smash Periodic <gen> from the trigger queue
- Events