• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Wand of illusion immolation bug

Status
Not open for further replies.
Level 7
Joined
Nov 19, 2015
Messages
283
Just thought you guys might want to know.

When you cast wand of illusion and the illusion dies. It gets issued the order unimmolation. It then gets issued the order again in a few seconds. This messed up one of my spells and took me a while to find out what was causing the problem.

Heres a test map so you can see for yourself.
View attachment Illusion immolation check.w3x
 
Level 7
Joined
Nov 19, 2015
Messages
283
Don't really need help since the illusion is dead and unlikely to do anything. But would be nice if there was some code to just prevent it in the first place.

I had a check order for unimmolation to remove a unit required for a tech. I just have to add triggering unit is illusion = false. But if others needed to check whether a dying unit had immolation on or not.
 
Level 19
Joined
Jul 2, 2011
Messages
2,161
simplest solution would be to add a generic timer, problem is how to add it before they die?

I suppose you can, uhm... hmm... aaa....

is this even a problem. I can't see where this would be an issue.
 
Level 7
Joined
Nov 19, 2015
Messages
283
simplest solution would be to add a generic timer, problem is how to add it before they die?

I suppose you can, uhm... hmm... aaa....

is this even a problem. I can't see where this would be an issue.

This is more a discussion, this is not a problem when I am asking for answer. I have already solved my problem but am discussing it further to see if any possible further applications.

There's a similar thing for defend. You can use it to detect when a unit is removed from the game. I suppose immolation works the same way.

Thats a smart method my reversing it. Would you be able to give defend in a disabled spellbook to the caster. Then you would be able to detect if it was the illusion of that unit.

I have found that illusion do not share unit types but have a custom unit typing. They do however share the same unit name, so a string comparison also works.
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
Afaik illusions use the normal unit types. You can easily check if a specific unit is an illusion though, as the IsUnitType function handles that as well. In GUI it's the Unit Classification Check boolean condition. "Is (unit) (something)".
You can use the item defend ability or maybe disable this defend ability for all players to hide the icon. You'll need to test if it still works if you disable it though.
 
Level 7
Joined
Nov 19, 2015
Messages
283
Afaik illusions use the normal unit types. You can easily check if a specific unit is an illusion though, as the IsUnitType function handles that as well. In GUI it's the Unit Classification Check boolean condition. "Is (unit) (something)".
You can use the item defend ability or maybe disable this defend ability for all players to hide the icon. You'll need to test if it still works if you disable it though.

I realised I made a mistake on the unit type test since it converts it to a string rathr than displays it as a string hence it appeared different from the unit type. Just did a check and you are right.

I probs don't need the defend thing any time soon in my map but is good to know toggle abilities are deactivated on death. I guess it stops corpses from having immolation. I don't understand why it triggers again after a few seconds. Changing the decay of stuff in gameplay constants has no effect.
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
I think it's the underlying implementation.
Ever notice how when you die with demon hunter and have immolation on, it has turned off when you revive? This is the first "unimmolation" command. Seems to be so just to prevent stupid things happening, like losing mana to immolation being on when you revive.

The second time happens because although your unit dies, it still has its abilities(albeit in a disabled form). When it disappears each ability is specifically removed.
What happens when you remove immolation? Well it gives the "unimmolation" order just in case, so there wouldn't be any problems, because it doesn't know why the ability is being removed, just that it has to remove it.

Luckily for us, it's a fairly harmless bug and doesn't break anything, so blizzard has kept it in the game and we can use(abuse) it to detect when units disappear.
How do you know? Well, when the second "undefend" or "unimmolation" order runs, the unit no longer has the ability. Checking the level of ability will return 0.
 
Status
Not open for further replies.
Top