Simple spell being stupid, works half the time
So this spell:
behaves very odd. It seems to not work most of the time. It ALWAYS works on Berserker units, but the other ones with less HP seem to resist it somehow. I think there is something wrong with my trigger:
**edit** on units that it doesn't work, it still places the buff but doesn't do any damage
*************************
Ok I added debug messages to see when the trigger fucks up and it has me stumped. It isn't considering the unit part of the group, RIGHT AFTER IT ADDS IT!
So this spell:
behaves very odd. It seems to not work most of the time. It ALWAYS works on Berserker units, but the other ones with less HP seem to resist it somehow. I think there is something wrong with my trigger:
**edit** on units that it doesn't work, it still places the buff but doesn't do any damage
-
Lethal Poison 01
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to ASN-5 Lethal Poison
-
-
Actions
-
Set temp_point = (Position of (Target unit of ability being cast))
-
Unit - Create 1 D.ASN-5 Lethal Poison for (Owner of (Triggering unit)) at temp_point facing Default building facing degrees
-
Custom script: call RemoveLocation(udg_temp_point)
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Faerie Fire (Target unit of ability being cast)
-
Hashtable - Save ((1.00 x ((Max life of (Target unit of ability being cast)) - (Life of (Target unit of ability being cast)))) / (11.00 - (Real((Level of (Ability being cast) for (Triggering unit)))))) as (Key damage) of (Key (Target unit of ability being cast)) in H_LethalPoison
-
Hashtable - Save (11.00 - (Real((Level of (Ability being cast) for (Triggering unit))))) as (Key duration) of (Key (Target unit of ability being cast)) in H_LethalPoison
-
Hashtable - Save Handle Of(Triggering unit) as (Key caster) of (Key (Target unit of ability being cast)) in H_LethalPoison
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Target unit of ability being cast) is in G_LethalPoison) Equal to False
-
-
Then - Actions
-
Unit Group - Add (Target unit of ability being cast) to G_LethalPoison
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Lethal Poison 02 <gen> is on) Equal to False
-
-
Then - Actions
-
Trigger - Turn on Lethal Poison 02 <gen>
-
-
Else - Actions
-
-
-
-
Lethal Poison 02
-
Events
-
Time - Every 0.20 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in G_LethalPoison) Greater than 0
-
-
Then - Actions
-
Unit Group - Pick every unit in G_LethalPoison and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load (Key duration) of (Key (Picked unit)) from H_LethalPoison) Greater than 0.00
-
-
Then - Actions
-
Unit - Cause (Load (Key caster) of (Key (Picked unit)) in H_LethalPoison) to damage (Picked unit), dealing ((Load (Key damage) of (Key (Picked unit)) from H_LethalPoison) x R_FRAME_OVERTIME) damage of attack type Hero and damage type Normal
-
Hashtable - Save ((Load (Key duration) of (Key (Picked unit)) from H_LethalPoison) - R_FRAME_OVERTIME) as (Key duration) of (Key (Picked unit)) in H_LethalPoison
-
-
Else - Actions
-
Unit - Remove ~ASN-5 Lethal Poison (Assassin) buff from (Picked unit)
-
Hashtable - Clear all child hashtables of child (Key (Picked unit)) in H_LethalPoison
-
Unit Group - Remove (Picked unit) from G_LethalPoison
-
-
-
-
-
-
Else - Actions
-
Trigger - Turn off (This trigger)
-
-
-
-
*************************
Ok I added debug messages to see when the trigger fucks up and it has me stumped. It isn't considering the unit part of the group, RIGHT AFTER IT ADDS IT!
-
Lethal Poison 01
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to ASN-5 Lethal Poison
-
-
Actions
-
Set temp_point = (Position of (Target unit of ability being cast))
-
Unit - Create 1 D.ASN-5 Lethal Poison for (Owner of (Triggering unit)) at temp_point facing Default building facing degrees
-
Custom script: call RemoveLocation(udg_temp_point)
-
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Faerie Fire (Target unit of ability being cast)
-
Hashtable - Save ((1.00 x ((Max life of (Target unit of ability being cast)) - (Life of (Target unit of ability being cast)))) / (11.00 - (Real((Level of (Ability being cast) for (Triggering unit)))))) as (Key damage) of (Key (Target unit of ability being cast)) in H_LethalPoison
-
Hashtable - Save (11.00 - (Real((Level of (Ability being cast) for (Triggering unit))))) as (Key duration) of (Key (Target unit of ability being cast)) in H_LethalPoison
-
Hashtable - Save Handle Of(Triggering unit) as (Key caster) of (Key (Target unit of ability being cast)) in H_LethalPoison
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Target unit of ability being cast) is in G_LethalPoison) Equal to False
-
-
Then - Actions
-
Game - Display to (All players) the text: adding
-
Unit Group - Add (Target unit of ability being cast) to G_LethalPoison
-
-
Else - Actions
-
Game - Display to (All players) the text: in group
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Lethal Poison 02 <gen> is on) Equal to False
-
-
Then - Actions
-
Game - Display to (All players) the text: trigger 2 on
-
Trigger - Turn on Lethal Poison 02 <gen>
-
-
Else - Actions
-
-
-
-
Lethal Poison 02
-
Events
-
Time - Every 0.20 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in G_LethalPoison) Greater than 0
-
-
Then - Actions
-
Game - Display to (All players) the text: unit
-
Unit Group - Pick every unit in G_LethalPoison and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Load (Key duration) of (Key (Picked unit)) from H_LethalPoison) Greater than 0.00
-
-
Then - Actions
-
Unit - Cause (Load (Key caster) of (Key (Picked unit)) in H_LethalPoison) to damage (Picked unit), dealing ((Load (Key damage) of (Key (Picked unit)) from H_LethalPoison) x R_FRAME_OVERTIME) damage of attack type Hero and damage type Normal
-
Game - Display to (All players) the text: dmg
-
Hashtable - Save ((Load (Key duration) of (Key (Picked unit)) from H_LethalPoison) - R_FRAME_OVERTIME) as (Key duration) of (Key (Picked unit)) in H_LethalPoison
-
-
Else - Actions
-
Game - Display to (All players) the text: 0 duration
-
Unit - Remove ~ASN-5 Lethal Poison (Assassin) buff from (Picked unit)
-
Hashtable - Clear all child hashtables of child (Key (Picked unit)) in H_LethalPoison
-
Unit Group - Remove (Picked unit) from G_LethalPoison
-
-
-
-
-
-
Else - Actions
-
Game - Display to (All players) the text: no units
-
Game - Display to (All players) the text: trigger 2 off
-
Trigger - Turn off (This trigger)
-
-
-
-
Attachments
Last edited: