• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Killing casting unit causes fatal error

Status
Not open for further replies.
Why does removing, killing, exploding the casting unit cause a fatal error here. The trigger works fine if the call to explode the caster is taken out.

  • Combust
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Combust
    • Actions
      • Set TempLoc42 = (Position of (Casting unit))
      • Unit - Create 1 SFXDummyCombust for (Owner of (Casting unit)) at TempLoc42 facing Default building facing degrees
      • Unit - Explode (Casting unit)
      • Unit - Add a 45.00 second Generic expiration timer to (Last created unit)
      • Unit Group - Pick every unit in (Units within 750.00 of TempLoc42) and do (Actions)
        • Loop - Actions
          • Unit - Cause (Last created unit) to damage (Picked unit), dealing 400.00 damage of attack type Normal and damage type Fire
      • Custom script: call RemoveLocation (udg_TempLoc42)
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
I created the same trigger and it didn't crash for me.

Remove the condition and try it with some other spell.

Move the explode unit function to be the last function call then add longer wait ( 1 second) before it, use triggering unit.

Perhaps that helps to determine whether it's the ability that bugs it.
 
  • Like
Reactions: Kam
Status
Not open for further replies.
Top