Mã:
Holy Light
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Holy Light
Actions
Set Holy_Light_caster = (Casting unit)
Unit Group - Pick every unit in (Units within 600.00 of (Position of Holy_Light_caster) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an enemy of (Owner of Holy_Light_caster)) Equal to True))) and do (Actions)
Loop - Actions
Unit - Cause Holy_Light_caster to damage (Picked unit), dealing (100.00 x (Real((Level of Holy Light for Holy_Light_caster)))) damage of attack type Spells and damage type Normal
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\HolyBolt\HolyBoltSpecialArt.mdl
Special Effect - Destroy (Last created special effect)
Unit Group - Pick every unit in (Units within 600.00 of (Position of Holy_Light_caster) matching (((Matching unit) belongs to an enemy of (Owner of Holy_Light_caster)) Equal to False)) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (200.00 x (Real((Level of Holy Light for Holy_Light_caster)))))
Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Special Effect - Destroy (Last created special effect)
Wait 0.50 seconds
Set Holy_Light_caster = No unit
để trigger như thế này, ra cast skill thì ally được heal như bình thường còn enemy lại không mất giọt máu nào trong khi effect vẫn thể hiện đầy đủ ? Ai giúp mình với.Mình cũng đã thử làm là pick tất cả unit xung wanh caster, nếu là địch thì deal damage, nếu là ally thì heal.Cũng không được nốt