He creado un spell que le mete un buff al enemigo que hace que las unidades que le hagan daño ganen velocidad de movimiento por un tiempo. Por alguna razón el spell funciona bien cuando permito que todos los atacantes ganen el buff, pero si lo quiero limitar a atacantes de rango melee, deja de funcionar. Alguna solución?
[GUI]Flesh effect
Events
Game - GDD_Event becomes Equal to 0.00
Conditions
(GDD_DamagedUnit has buff Cursed Flesh ) Equal to True
Actions
Set U_FleshlustTarget[(Custom value of GDD_DamageSource)] = GDD_DamageSource
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(U_FleshlustTarget[(Custom value of GDD_DamageSource)] is A melee attacker) Equal to True
Then - Actions
Set P_CursePoint = (Position of U_FleshlustTarget[(Custom value of GDD_DamageSource)])
Unit - Create 1 Dummy for (Owner of U_FleshlustTarget[(Custom value of GDD_DamageSource)]) at P_CursePoint facing Default building facing degrees
Set U_Dummy[(Custom value of GDD_DamageSource)] = (Last created unit)
Unit - Add Fleshlust (Dummy Spell) to U_Dummy[(Custom value of GDD_DamageSource)]
Unit - Set level of Fleshlust (Dummy Spell) for U_Dummy[(Custom value of GDD_DamageSource)] to (Level of Cursed Flesh for Zan'do 0237 )
Unit - Order U_Dummy[(Custom value of GDD_DamageSource)] to Orc Shaman - Bloodlust U_FleshlustTarget[(Custom value of GDD_DamageSource)]
Unit - Add a 1.00 second Generic expiration timer to U_Dummy[(Custom value of GDD_DamageSource)]
Else - Actions
Custom script: call RemoveLocation(udg_P_CursePoint)
[/GUI]

Haz click a una de las imagenes y entra a un trip