Jocky1992
J
Jocky1992
Hello everybody, I need help again^^
I want to create a spell that effects all units within a range of 512 around the hero and damages them and knockbacks them back. The Damage works well but everything else is bugged. I tryied around many things but nothing helped. The funny thing is that Hero gets knockbacked and after that he disappears. I would be Happy if you could help me. Thank you for your Help.
This is my Trigger:
I want to create a spell that effects all units within a range of 512 around the hero and damages them and knockbacks them back. The Damage works well but everything else is bugged. I tryied around many things but nothing helped. The funny thing is that Hero gets knockbacked and after that he disappears. I would be Happy if you could help me. Thank you for your Help.
This is my Trigger:
-
BlitzauraKnockback
-

Ereignisse
-


Unit - A unit Startet den Effekt einer Fähigkeit
-
-

Bedingungen
-


(Ability being cast) Gleich Blitzschock
-
-

Aktionen
-


Einheitengruppe - Pick every unit in (Units within 512.00 of (Position of (Casting unit))) and do (Actions)
-



Schleifen - Aktionen
-




If (((Picked unit) belongs to an ally of (Owner of (Casting unit))) Gleich False) then do (Einheit - Cause (Casting unit) to damage (Picked unit), dealing ((1.00 x (Real((Intelligenz of (Casting unit) (Einschließen bonuses))))) + 1.00) damage of attack type Zaubersprüche and damage type Magie) else do (Do nothing)
-




If (((Picked unit) belongs to an ally of (Owner of (Casting unit))) Gleich False) then do (Spezialeffekt - Create a special effect attached to the chest of (Casting unit) using Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl) else do (Do nothing)
-




Spezialeffekt - Destroy (Last created special effect)
-
-
-


Set Caster = (Triggering unit)
-


Set Target = (Picked unit)
-


Set Location = (Position of Caster)
-


Trigger - Turn on PushBlitzaura <gen>
-


Wait 1.00 seconds
-


Trigger - Turn off PushBlitzaura <gen>
-


Custom script: call RemoveUnit(udg_Caster)
-


Custom script: call RemoveUnit(udg_Target)
-


Custom script: call RemoveLocation(udg_Location)
-
-
-
PushBlitzaura
-

Ereignisse
-


Zeit - Every 0.04 seconds of game time
-
-

Bedingungen
-

Aktionen
-


Unit - Move Target instantly to (Location offset by ((Distance between Location and (Position of Target)) + 5.00) towards (Angle from Location to (Position of Target)) degrees)
-


Spezialeffekt - Create a special effect attached to the origin of Target using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
-
-

