cho em hõi sao skill này sau khi cát xong thì lag quá có ai bik tại sao không :
Trigger 1 :
Action
Trigger - Turn off (This trigger)
Set NHUnit[1] = (Damage source)
Set NHUnit[2] = (Triggering unit)
Set ANHAN = 0.00
Set ANHIN = 0.00
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(NHUnit[2] has buff Lam Cham ) Equal to True
(Unit-type of NHUnit[1]) Equal to |cff0000ffPhĂ³c Thä Viªn|r
Then - Actions
Unit - Create 1 Niem Hoa for (Owner of NHUnit[1]) at (Position of NHUnit[2]) facing (Facing of NHUnit[2]) degrees
Set NHUnit[3] = (Last created unit)
Unit - Create 1 Niem Hoa for (Owner of NHUnit[1]) at (Position of NHUnit[2]) facing (Facing of NHUnit[2]) degrees
Set NHUnit[4] = (Last created unit)
Unit - Create 1 Niem Hoa for (Owner of NHUnit[1]) at (Position of NHUnit[2]) facing (Facing of NHUnit[2]) degrees
Set NHUnit[5] = (Last created unit)
Unit - Create 1 Niem Hoa for (Owner of NHUnit[1]) at (Position of NHUnit[2]) facing (Facing of NHUnit[2]) degrees
Set NHUnit[6] = (Last created unit)
Unit - Create 1 Niem Hoa for (Owner of NHUnit[1]) at (Position of NHUnit[2]) facing (Facing of NHUnit[2]) degrees
Set NHUnit[7] = (Last created unit)
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Unit - Turn collision for NHUnit[((Integer A) + 2)] Off
Trigger - Turn on NHPL <gen>
Wait 2.50 seconds
Trigger - Turn off NHPL Copy <gen>
Unit - Remove NHUnit[3] from the game
Unit - Remove NHUnit[4] from the game
Unit - Remove NHUnit[5] from the game
Unit - Remove NHUnit[6] from the game
Unit - Remove NHUnit[7] from the game
Trigger - Turn on (This trigger)
Else - Actions
Trigger - Turn on (This trigger)
Trigger 2 :
Event
Time - Every 0.03 seconds of game time
Unit - Move NHUnit[3] instantly to ((Position of NHUnit[3]) offset by 50.00 towards (Angle from (Position of NHUnit[3]) to (Position of NHUnit[2])) degrees), facing (Facing of NHUnit[2]) degrees
Unit - Move NHUnit[4] instantly to ((Position of NHUnit[4]) offset by 50.00 towards (Angle from (Position of NHUnit[4]) to (Position of NHUnit[2])) degrees), facing (Facing of NHUnit[2]) degrees
Unit - Move NHUnit[5] instantly to ((Position of NHUnit[5]) offset by 50.00 towards (Angle from (Position of NHUnit[5]) to (Position of NHUnit[2])) degrees), facing (Facing of NHUnit[2]) degrees
Unit - Move NHUnit[6] instantly to ((Position of NHUnit[6]) offset by 50.00 towards (Angle from (Position of NHUnit[6]) to (Position of NHUnit[2])) degrees), facing (Facing of NHUnit[2]) degrees
Unit - Move NHUnit[7] instantly to ((Position of NHUnit[7]) offset by 50.00 towards (Angle from (Position of NHUnit[7]) to (Position of NHUnit[2])) degrees), facing (Facing of NHUnit[2]) degrees
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Set GroupSkill[6] = (Units within 60.00 of (Position of NHUnit[((Integer A) + 2)]))
Unit Group - Pick every unit in GroupSkill[6] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an enemy of (Owner of NHUnit[1])) Equal to True
((Picked unit) is alive) Equal to True
Then - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using MDX\IceRepel.mdx
Unit - Cause NHUnit[1] to damage (Picked unit), dealing 250.00 damage of attack type Normal and damage type Cold
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer((Distance between (Position of NHUnit[5]) and (Position of NHUnit[2])))) Less than or equal to 200
Then - Actions
Trigger - Turn off (This trigger)
Trigger - Turn on NHPL Copy <gen>
Set ANHIN = 360.00
Else - Actions
Trigger 3 :
Event :
Time - Every 0.03 seconds of game time
Set ANHAN = (ANHAN + 7.00)
Set ANHIN = (ANHIN - 7.00)
Unit - Move NHUnit[3] instantly to ((Position of NHUnit[3]) offset by 50.00 towards ANHAN degrees), facing (Facing of NHUnit[1]) degrees
Unit - Move NHUnit[4] instantly to ((Position of NHUnit[4]) offset by 50.00 towards ANHAN degrees), facing (Facing of NHUnit[1]) degrees
Unit - Move NHUnit[5] instantly to ((Position of NHUnit[5]) offset by 50.00 towards (Angle from (Position of NHUnit[5]) to (Position of NHUnit[2])) degrees), facing (Facing of NHUnit[2]) degrees
Unit - Move NHUnit[6] instantly to ((Position of NHUnit[6]) offset by 50.00 towards ANHIN degrees), facing (Facing of NHUnit[1]) degrees
Unit - Move NHUnit[7] instantly to ((Position of NHUnit[7]) offset by 50.00 towards ANHIN degrees), facing (Facing of NHUnit[1]) degrees
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Set GroupSkill[6] = (Units within 60.00 of (Position of NHUnit[((Integer A) + 2)]))
Unit Group - Pick every unit in GroupSkill[6] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an enemy of (Owner of NHUnit[1])) Equal to True
((Picked unit) is alive) Equal to True
Then - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using MDX\IceRepel.mdx
Unit - Cause NHUnit[1] to damage (Picked unit), dealing 250.00 damage of attack type Normal and damage type Cold
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Integer((Distance between (Position of NHUnit[5]) and (Position of NHUnit[2])))) Less than or equal to 200
Then - Actions
Else - Actions