- Joined
- Dec 16, 2017
- Messages
- 437
Hello guys, i am having an issue with this spell, it damages the caster aswell, not just the picked units, what could cause it?
-
Flying Kick Cast
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Flying Kick (Pandaren Brewmaster)
-
-

Actions
-


Set FK_Caster = (Triggering unit)
-


Set FK_Target = (Target point of ability being cast)
-


Unit - Turn collision for FK_Caster Off
-


Trigger - Turn on Flying Kick Loop <gen>
-


Special Effect - Create a special effect attached to the origin of FK_Caster using FireworksDragonHead.mdx
-


Set FK_SFX = (Last created special effect)
-
-
-
Flying Kick Loop
-

Events
-


Time - Every 0.03 seconds of game time
-
-

Conditions
-

Actions
-


Set FK_CasterPosition = (Position of FK_Caster)
-


Set FK_Real = (Angle from FK_CasterPosition to FK_Target)
-


Set FK_Distance = (FK_CasterPosition offset by 45.00 towards FK_Real degrees)
-


Unit - Move FK_Caster instantly to FK_Distance, facing FK_Real degrees
-


Animation - Change FK_Caster's vertex coloring to (100.00%, 100.00%, 100.00%) with 50.00% transparency
-


Custom script: set bj_wantDestroyGroup = true
-


Unit Group - Pick every unit in (Units within 250.00 of FK_CasterPosition) and do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






((Picked unit) is alive) Equal to True
-






((Picked unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True
-
-





Then - Actions
-






Unit - Cause FK_Caster to damage (Picked unit), dealing (80.00 x (Real((Level of Flying Kick (Pandaren Brewmaster) for FK_Caster)))) damage of attack type Normal and damage type Normal
-
-





Else - Actions
-
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Integer((Distance between FK_CasterPosition and FK_Target))) Less than or equal to 45
-
-



Then - Actions
-




Trigger - Turn off (This trigger)
-




Special Effect - Destroy FK_SFX
-




Unit - Turn collision for FK_Caster On
-




Animation - Change FK_Caster's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-




Animation - Reset FK_Caster's animation
-




Custom script: call RemoveLocation(udg_FK_Target)
-
-



Else - Actions
-
-


Custom script: call RemoveLocation(udg_FK_CasterPosition)
-


Custom script: call RemoveLocation(udg_FK_Distance)
-
-
Last edited:



