[gui]Teleport
Acontecimientos
Unidad - A unit Finaliza el lanzamiento de una habilidad
Condiciones
(Ability being cast) Igual a (==) Ataque en Area (Neutral)
Acciones
Set Punto = (Position of (Triggering unit))
Set Grupo = (Units within 325.00 of Punto matching ((((Matching unit) is Una estructura) Igual a (==) False) and (((Matching unit) belongs to an enemy of (Triggering player)) Igual a (==) True)))
Grupo de unidad - Pick every unit in Grupo and do (Actions)
Bucle: Acciones
Unidad - Cause (Triggering unit) to damage (Picked unit), dealing (25.00 x (Real((Level of (Ability being cast) for (Triggering unit))))) damage of attack type Conjuros and damage type Normal
Efecto especial - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
Efecto especial - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_Punto)
Custom script: call DestroyGroup(udg_Grupo)
[/gui]
https://www.epicwar.com/maps/285066/
Un pequeño detalle importante a la habilidad, es que no funciona correctamente si cancelas la animación muy temprano, esto se puede solucionar cambiando el evento para que el detonador quede así:
[gui]Teleport
Acontecimientos
Unidad - A unit Inicia el efecto de una habilidad
Condiciones
(Ability being cast) Igual a (==) Ataque en Area (Neutral)
Acciones
Set Punto = (Position of (Triggering unit))
Set Grupo = (Units within 325.00 of Punto matching ((((Matching unit) is Una estructura) Igual a (==) False) and (((Matching unit) belongs to an enemy of (Triggering player)) Igual a (==) True)))
Grupo de unidad - Pick every unit in Grupo and do (Actions)
Bucle: Acciones
Unidad - Cause (Triggering unit) to damage (Picked unit), dealing (25.00 x (Real((Level of (Ability being cast) for (Triggering unit))))) damage of attack type Conjuros and damage type Normal
Efecto especial - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
Efecto especial - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_Punto)
Custom script: call DestroyGroup(udg_Grupo)
[/gui]