Anh Tom gộp chung bài viết lại giúp em nha, tai không biết cách sửa bài.
Cái spell của bạn có thể làm lại như sau:
Trigger 1:
Events
Time - Elapsed game time is 0.00 seconds
Conditions
Actions
Set TempGroup = (Units in (Playable map area))
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to TakeDamGroup
Trigger - Add to Trgger 3 <gen> the event (Unit - (Picked unit) Takes damage)
Custom script: call DestroyGroup( udg_TempGroup )
Trigger 2:
Events
Unit - A unit enters (Playable map area)
Conditions
((Triggering unit) is in TakeDamGroup) Equal to False
Actions
Unit Group - Add (Triggering unit) to TakeDamGroup
Trigger - Add to Trgger 3 <gen> the event (Unit - (Triggering unit) Takes damage)
Trigger 3:
Events
Conditions
Actions
Trigger - Turn off (This trigger)
Set AttackingUnit = (Damage source)
Set AttackedUnit = (Triggering unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of AttackingUnit) Equal to Demon Hunter (Demon Form)
Then - Actions
Set AttackingPoint = (Position of AttackingUnit)
Unit - Create 1 Water Elemental (Level 1) for (Owner of AttackingUnit) at AttackingPoint facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Attack AttackedUnit
Custom script: call RemoveLocation( udg_AttackingPoint )
Else - Actions
Set AttackingUnit = No unit
Set AttackedUnit = No unit
Trigger - Turn on (This trigger)
Mình có kèm map ở dưới, có gì bạn xem để hiểu rõ hơn:
http://www.mediafire.com/?ijojznoohjv