đã test , sau đây là ý kiến của mình :
spell Tide Hunter Ravage thì
Mã:
Set TempPoint = (CasterLoc offset by 50.00 towards (21.50 x (Real((Integer A)))) degrees)
nên sửa thành :
Mã:
Set TempPoint = (CasterLoc offset by 50.00 towards (18.00 x (Real((Integer A)))) degrees)
vì loop là 20 nên 360/20 = 18 để nó tạo ra 1 vòng tròn luôn
còn spell Lightning Bolt thì có 1 leak ( trigger dưới là remove leak luôn rồi :)
Mã:
Lightning Bolt
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Lightning Bolt
Actions
Set LightningBoltTarget = (Target unit of ability being cast)
Set TempPoint = (Position of LightningBoltTarget)
Unit - Create 1 Dummy Unit for (Owner of (Casting unit)) at TempPoint facing Default building facing degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Set level of Chain Lightning for (Last created unit) to (Level of Lightning Bolt for (Casting unit))
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning LightningBoltTarget
Custom script: call RemoveLocation (udg_TempPoint)