- Joined
- Jul 9, 2008
- Messages
- 25
A burning effect is added to my units when "Flamethrower", an ability based on the Pandaren Brewmaster's Breath of Fire. But I am having trouble with the "Fire Extinguisher" spell used to put out a fire.
flamethrower
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Flamethrower
Actions
Unit - Add Burning to (Target unit of ability being cast)
It then spreads between units with this trigger:
fire spread
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Burning) Equal to True)) and do (Actions)
Loop - Actions
Unit - Add Burning to (Picked unit)
Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) has buff Burning) Equal to True) and ((Life of (Matching unit)) Less than or equal to 1.00))) and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
All that works fine, until I try to put the fire out. I have a spell to simulate a fire extinguisher, based on the Shaman's Purge spell:
fire extinguisher
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Fire Extinguisher
Actions
Unit - Remove Burning buff from (Target unit of ability being cast)
Unit - Remove Burning from (Target unit of ability being cast)
When the Fire Extinguisher spell is used on a unit that has been hit with a Flamethrower, it doesn't always work. If I use it within two or three seconds after the Flamethrower (while the Flamethrower spell is still casting), it will put out the fire just fine. But if I wait until after the Flamethrower has finished casting to begin casting the Fire Extinguisher, the Fire Extinguisher will remove the "Burning" ability from the unit, but not the buff, and one second later the Burning ability will come back and the unit will continue to take damage. Why isn't this working?
flamethrower
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Flamethrower
Actions
Unit - Add Burning to (Target unit of ability being cast)
It then spreads between units with this trigger:
fire spread
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff Burning) Equal to True)) and do (Actions)
Loop - Actions
Unit - Add Burning to (Picked unit)
Unit Group - Pick every unit in (Units in (Playable map area) matching ((((Matching unit) has buff Burning) Equal to True) and ((Life of (Matching unit)) Less than or equal to 1.00))) and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
All that works fine, until I try to put the fire out. I have a spell to simulate a fire extinguisher, based on the Shaman's Purge spell:
fire extinguisher
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Fire Extinguisher
Actions
Unit - Remove Burning buff from (Target unit of ability being cast)
Unit - Remove Burning from (Target unit of ability being cast)
When the Fire Extinguisher spell is used on a unit that has been hit with a Flamethrower, it doesn't always work. If I use it within two or three seconds after the Flamethrower (while the Flamethrower spell is still casting), it will put out the fire just fine. But if I wait until after the Flamethrower has finished casting to begin casting the Fire Extinguisher, the Fire Extinguisher will remove the "Burning" ability from the unit, but not the buff, and one second later the Burning ability will come back and the unit will continue to take damage. Why isn't this working?