Mã:
Fire
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Convert Flame
Actions
Set FireCaster = (Casting unit)
Set FireCasterLoc = (Position of FireCaster)
Set FirePoint = (Target point of ability being cast)
If ((Level of Convert Flame for FireCaster) Equal to 1) then do (Set FireEnemyGroup = (Units within 425.00 of (Target point of ability being cast) matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is Magic Immune) Not equal to True) and ((((Triggering unit) is Magic Immune) Not equal to else do (Do nothing)
If ((Level of Convert Flame for FireCaster) Equal to 2) then do (Set FireEnemyGroup = (Units within 425.00 of (Target point of ability being cast) matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is Magic Immune) Not equal to True) and ((((Triggering unit) is Magic Immune) Not equal to else do (Do nothing)
If ((Level of Convert Flame for FireCaster) Equal to 3) then do (Set FireEnemyGroup = (Units within 425.00 of (Target point of ability being cast) matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is Magic Immune) Not equal to True) and ((((Triggering unit) is Magic Immune) Not equal to else do (Do nothing)
If ((Level of Convert Flame for FireCaster) Equal to 4) then do (Set FireEnemyGroup = (Units within 425.00 of (Target point of ability being cast) matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is Magic Immune) Not equal to True) and ((((Triggering unit) is Magic Immune) Not equal to else do (Do nothing)
Wait 0.10 seconds
Unit Group - Pick every unit in FireEnemyGroup and do (Actions)
Loop - Actions
Unit - Add Fly to (Picked unit)
Unit - Remove Fly from (Picked unit)
Animation - Change (Picked unit) flying height to 0.00 at 400.00
Unit - Cause FireCaster to damage (Picked unit), dealing (100.00 x (Real((Level of Convert Flame for FireCaster)))) damage of attack type Magic and damage type Fire
Unit - Create 1 Fire for (Owner of FireCaster) at (Position of FireCaster) facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
Special Effect - Create a special effect attached to the origin of (Picked unit) using Environment\NightElfBuildingFire\ElfLargeBuildingFire1.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call DestroyGroup(udg_FireEnemyGroup)
Custom script: call RemoveLocation(udg_FireCasterLoc)
mình ko biết sai ở đâu nữa

vì không thấy bay lên nhưng vẫn nhận dam
, và 4 dòng If sao mình đọc như nhau cả thế 




Cách sửa có nhiều cách, 1 trong số đó là dùng Timer.