AdventCore
New Member
- Reaction score
- 2
Why is my spell causing a fatal error? Warcraft III only crashes when you cast the ability on enemy units however it doesn't fatal when I just cast it on empty terrain.
Here is the Trigger:
Or if you want the map it's attached below.
All I want to know is how I can edit what I have to stop it from causing fatal errors rather than creating the spell from scratch I've tried it before but no way works properly. This is the closest I have gotten so far and I'd rather not scrap it all to find out it doesn't work (It's happened multiple times). This is what the spell is supposed to look like:
This is the fatal:
Thanks in advance.
Here is the Trigger:
Code:
Flames of Ruin
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Flames of Ruin
Actions
Set CPoint = (Position of (Casting unit))
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Set TempPoint = (CPoint offset by 256.00 towards (30.00 x (Real((Integer A)))) degrees)
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
Unit - Add Flames of Ruin (Hidden) to (Last created unit)
Unit - Set level of Flames of Ruin (Hidden) for (Last created unit) to (Level of Flames of Ruin for (Casting unit))
Unit - Order (Last created unit) to Human Blood Mage - Flame Strike TempPoint
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation (udg_TempPoint)
Custom script: call RemoveLocation (udg_CPoint)
Or if you want the map it's attached below.
All I want to know is how I can edit what I have to stop it from causing fatal errors rather than creating the spell from scratch I've tried it before but no way works properly. This is the closest I have gotten so far and I'd rather not scrap it all to find out it doesn't work (It's happened multiple times). This is what the spell is supposed to look like:
This is the fatal:
Thanks in advance.