- Joined
- May 11, 2012
- Messages
- 2,103
What seems to be the problem in "Incineration" that it won't properly cast spells when there are enemy units right next to my hero? It just casts at random angles, not in 60*TempInt (60, 120, 180, 240, 300, 360) like it should.
But when there are few enemies around my hero, it casts fine.
The "Phantasm" works fine on 1st level, it cr8es all 5 illusions, but on 2nd, 3rd, 4th and 5th level, it just creates 1 illusion. I have put debug messages in both spells to display the "TempInt" and it displays fine.
Please help me because this is really annoying to me and I can't seem to find solution.
But when there are few enemies around my hero, it casts fine.
The "Phantasm" works fine on 1st level, it cr8es all 5 illusions, but on 2nd, 3rd, 4th and 5th level, it just creates 1 illusion. I have put debug messages in both spells to display the "TempInt" and it displays fine.
Please help me because this is really annoying to me and I can't seem to find solution.
-
Incineration
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Incineration
-
Actions
- Set TempTrigUnit = (Triggering unit)
- Set TempPoint = (Position of TempTrigUnit)
- Animation - Play TempTrigUnit's spell animation
-
For each (Integer TempInt) from 1 to 6, do (Actions)
-
Loop - Actions
- Set TempReal = (60.00 x (Real(TempInt)))
- Set TempPoint2 = (TempPoint offset by 20.00 towards TempReal degrees)
- Unit - Create 1 Dummy Caster for (Owner of TempTrigUnit) at TempPoint facing TempReal degrees
- Set TempDummyUnit = (Last created unit)
- Unit - Add a 0.50 second Generic expiration timer to TempDummyUnit
- Unit - Add Dummy Incineration to TempDummyUnit
- Unit - Set level of Dummy Incineration for TempDummyUnit to (Level of Incineration for TempTrigUnit)
- Unit - Order TempDummyUnit to Orc Tauren Chieftain - Shockwave TempPoint2
- Custom script: call RemoveLocation(udg_TempPoint2)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: set udg_TempPoint = null
- Custom script: set udg_TempPoint2 = null
- Custom script: set udg_TempTrigUnit = null
- Custom script: set udg_TempDummyUnit = null
-
Events
-
Phantasm
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Phantasm
-
Actions
- Set TempTrigUnit = (Triggering unit)
- Set TempPoint = (Position of TempTrigUnit)
- Unit - Create 1 Dummy Caster for (Owner of TempTrigUnit) at TempPoint facing TempPoint
- Set TempDummyUnit = (Last created unit)
- Unit - Add a 0.50 second Generic expiration timer to TempDummyUnit
- Unit - Add Dummy Phantasm to TempDummyUnit
- Unit - Set level of Dummy Phantasm for TempDummyUnit to (Level of Phantasm for TempTrigUnit)
-
For each (Integer TempInt) from 1 to 5, do (Actions)
-
Loop - Actions
- Custom script: call IssueTargetOrderById(udg_TempDummyUnit, 852274, udg_TempTrigUnit)
-
Loop - Actions
- Special Effect - Create a special effect attached to the overhead of TempTrigUnit using Abilities\Spells\Orc\FeralSpirit\feralspiritdone.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect attached to the origin of TempTrigUnit using Abilities\Spells\Orc\FeralSpirit\feralspiritdone.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: set udg_TempPoint = null
- Custom script: set udg_TempTrigUnit = null
- Custom script: set udg_TempDummyUnit = null
-
Events