[JASS] Immolation game freeze issue

Hello hive,

This is a follow up to my post here:

I was able to solve the freeze by using Mana Shield as the passive instead of Immolation. The goal is to have a detectable buff on the unit from a toggle-able ability. However, if I ever want to have a unit have 2 toggleable abilities of this nature and/or not have to trigger the mana drain, is there a way I can configure immolation to not freeze the game?

I did update the cooldownreduction library so the minimum possible cool down is 0 instead of letting it go negative.

editL In case it helps the immolation ability has an AoE of 0 and target filters set to only trees.
 
Last edited:

Chaosy

Tutorial Reviewer
Level 41
Joined
Jun 9, 2011
Messages
13,239
Unhelpfully my mind instantly goes to some over-engineered solution.

I typically want as much as possible of an ability to be code because then I have more control over it, for better or worse.
So if I wanted a toggle on/off ability I would make it so that on cast you remove ability 1 for ability 2 from the unit and then in a loop do whatever it is I want the ability to do.

It is a bit backwards but depending on how good you are it might be quicker to code it rather than figure out why the black box object editor doesn't work.
 
Level 14
Joined
Jan 10, 2023
Messages
247
Unhelpfully my mind instantly goes to some over-engineered solution.

I typically want as much as possible of an ability to be code because then I have more control over it, for better or worse.
So if I wanted a toggle on/off ability I would make it so that on cast you remove ability 1 for ability 2 from the unit and then in a loop do whatever it is I want the ability to do.

It is a bit backwards but depending on how good you are it might be quicker to code it rather than figure out why the black box object editor doesn't work.
That's what I would do, Ability 1 puts them in a group, Ability 2 removes them from the group, instead of checking for a buff, check if the unit is in the group.

Alternatively I might use an indexer depending on other considerations made depending on what kind of game it is.
 
Top