Ok, first of all I know this isn't the GDD's fault since it's working flawlessly in my other triggers, but this particular spell is giving me some trouble. The spell is called "Mystra's Kiss", and is based off of the vanilla Breath of Fire that deals normal damage and applies a miss-chance curse to enemies via dummies.
What's weird is when this trigger is disabled, the spell works normally (damages all enemies in a frontal cone), but when I enable this, it not only slows my game to a crawl for 2-3 seconds upon casting (due to some crazy trigger loop in the background, I suppose) but it also damages the target 4-5 times, as if the cone nuke was being re-cast 4-5 times in a row! I've disabled all my other triggers, so I know it isn't some trigger-related conflict...
Here's the trigger:
The strangest thing of all is if I remove the "Unit - Order (Last created unit) to Undead Banshee - Curse GDD_DamagedUnit" line from the trigger, then it actually doesn't lag, but it still deals 4-5 times the spell's damage!
I need the custom debuff in order to check when a unit is damaged by the cone, and the idea behind it was to do the check, remove the custom debuff (it only lasts 0.01 seconds anyway), and then have a dummy caster pop in and apply a curse to the target if the condition was passed.
(P.S. Ignore the leaks in the spell - I put in the custom points and everything else once the trigger is working 100% as intended without bugs, which is kinda' failing miserably in this case, what with all the lag and unintended penta-damage... )
EDIT: Some more info to clarify the spells/buffs.
- (Ability Buff) (Mystra's Kiss) (Flare) -> the buff applied by the Breath of Fire
- (Dummy Spell) (Mystra's Kiss) (Flare) -> tweaked Banshee curse
- Mystra's Kiss (Flare) -> tweaked Breath of Fire cone nuke
What's weird is when this trigger is disabled, the spell works normally (damages all enemies in a frontal cone), but when I enable this, it not only slows my game to a crawl for 2-3 seconds upon casting (due to some crazy trigger loop in the background, I suppose) but it also damages the target 4-5 times, as if the cone nuke was being re-cast 4-5 times in a row! I've disabled all my other triggers, so I know it isn't some trigger-related conflict...
Here's the trigger:
Trigger:
- Mystras Kiss Effects
- Events
- Game - GDD_Event becomes Equal to 0.00
- Conditions
- (GDD_DamagedUnit has buff (Ability Buff) (Mystra's Kiss) (Flare)) Equal to True
- Actions
- --- remove the cone nuke debuff ---
- Unit - Remove (Ability Buff) (Mystra's Kiss) (Flare) buff from GDD_DamagedUnit
- --- create a dummy at the damaged unit's location and order it to curse the damaged target ---
- Unit - Create 1 Dummy Caster (Jinxx Dummy) for (Owner of GDD_DamageSource) at (Position of GDD_DamagedUnit) facing (Position of GDD_DamagedUnit)
- Unit - Add (Dummy Spell) (Mystra's Kiss) (Flare) to (Last created unit)
- Unit - Set level of (Dummy Spell) (Mystra's Kiss) (Flare) for (Last created unit) to (Level of Mystra's Kiss (Flare) for GDD_DamageSource)
- Unit - Order (Last created unit) to Undead Banshee - Curse GDD_DamagedUnit
- Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
- Events
The strangest thing of all is if I remove the "Unit - Order (Last created unit) to Undead Banshee - Curse GDD_DamagedUnit" line from the trigger, then it actually doesn't lag, but it still deals 4-5 times the spell's damage!
I need the custom debuff in order to check when a unit is damaged by the cone, and the idea behind it was to do the check, remove the custom debuff (it only lasts 0.01 seconds anyway), and then have a dummy caster pop in and apply a curse to the target if the condition was passed.
(P.S. Ignore the leaks in the spell - I put in the custom points and everything else once the trigger is working 100% as intended without bugs, which is kinda' failing miserably in this case, what with all the lag and unintended penta-damage... )
EDIT: Some more info to clarify the spells/buffs.
- (Ability Buff) (Mystra's Kiss) (Flare) -> the buff applied by the Breath of Fire
- (Dummy Spell) (Mystra's Kiss) (Flare) -> tweaked Banshee curse
- Mystra's Kiss (Flare) -> tweaked Breath of Fire cone nuke