- Joined
- May 20, 2008
- Messages
- 138
Hello!
I'm having a small annoying problem with a spell I'm triggering. The spell is called consecration and is an Instant (no target) spell that creates a burning field under the casting unit dealing damage over time to enemy units in it.
For this purpose I use a dummy casting Flame Strike for the damage over time and burning ground visual and another dummy casting a non-damaging Death and Decay using the same visual effect to get denser flames.
However the problem I am having is that there is some kind of bug that apparently prevents two different units being created and casting two different spells at the same point location at the same time.
Any help resolving this/explanations why it doesn't work would be much appreciated!
Here's my trigger:
I'm having a small annoying problem with a spell I'm triggering. The spell is called consecration and is an Instant (no target) spell that creates a burning field under the casting unit dealing damage over time to enemy units in it.
For this purpose I use a dummy casting Flame Strike for the damage over time and burning ground visual and another dummy casting a non-damaging Death and Decay using the same visual effect to get denser flames.
However the problem I am having is that there is some kind of bug that apparently prevents two different units being created and casting two different spells at the same point location at the same time.
Any help resolving this/explanations why it doesn't work would be much appreciated!
Here's my trigger:
-
Paladin Consecration
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to (Paladin) Consecration
-
Actions
- Game - Display to (All players) the text: consecration
- Set GEN_TEMP_POINT[1] = (Position of (Casting unit))
- Set GEN_TEMP_POINT[2] = (Position of (Casting unit))
- -------- Create Flame strike damage and effect --------
- -------- Create Flame strike damage and effect --------
- -------- Create Flame strike damage and effect --------
- Unit - Create 1 Dummy Caster for (Owner of (Casting unit)) at GEN_TEMP_POINT[1] facing Default building facing degrees
- Unit - Hide (Last created unit)
- Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
- Unit - Add (Paladin) Consecration dummy to (Last created unit)
- Unit - Order (Last created unit) to Human Blood Mage - Flame Strike GEN_TEMP_POINT[1] ---------////////////////////// When disabling this action the next dummy caster is created and successfully casts Death and decay. When this action is NOT disabled, the second dummy caster isn't created at all, however the first one successfully casts Flame Strike.
- Custom script: call RemoveLocation(udg_GEN_TEMP_POINT[1])
- -------- Create Death and Decay extra effect --------
- -------- Create Death and Decay extra effect --------
- -------- Create Death and Decay extra effect --------
- Unit - Create 1 Dummy Caster for (Owner of (Casting unit)) at GEN_TEMP_POINT[2] facing Default building facing degrees
- Unit - Hide (Last created unit) ---------/////////////////// I've disabled this when debugging so that I can see if the second dummy caster is created. Which it is, as long as the first dummy unit doesn't cast Flame Strike.
- Unit - Add a 9.00 second Generic expiration timer to (Last created unit)
- Unit - Add (Paladin) Consecration visual effect to (Last created unit)
- Unit - Order (Last created unit) to Undead Lich - Death And Decay GEN_TEMP_POINT[2]
- Custom script: call RemoveLocation(udg_GEN_TEMP_POINT[2])
-
Events