- Joined
- Sep 14, 2009
- Messages
- 284
Sometimes when computer units are ordered to use spells, they just freeze and do nothing until they are killed. This happens about 1/10 times. How can I prevent this?
Here are the two triggers that the problem most often occurs in:
"CombatRect" in trigger 1 is a region where all the fighting takes place.
Here are the two triggers that the problem most often occurs in:
-
TrollPriestHealUse
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Level of Troll Priest - Heal for (Attacking unit)) Equal to (==) 1
-
(Mana of (Attacking unit)) Greater than or equal to (>=) 20.00
-
-
Actions
-
Set TempGroupA = (Units in CombatRect matching ((((Matching unit) belongs to an ally of (Owner of (Attacking unit))) Equal to (==) True) and (((Life of (Matching unit)) Less than (<) (Max life of (Matching unit))) and ((Level of Dummy Unit for (Matching unit)) Not equal to (
-
Unit - Order (Attacking unit) to Orc Shadow Hunter - Healing Wave (Random unit from TempGroupA)
-
Custom script: call DestroyGroup(udg_TempGroupA)
-
-
-
IceWaveUse
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Level of Frozen Colossus - Ice Wave for (Attacking unit)) Greater than or equal to (>=) 1
-
(Mana of (Attacking unit)) Greater than or equal to (>=) 40.00
-
-
Actions
-
Set TempPointA = (Position of (Attacking unit))
-
Unit - Order (Attacking unit) to Undead Dreadlord - Carrion Swarm TempPointA
-
Custom script: call RemoveLocation(udg_TempPointA)
-
-