• 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.

Very Strange Bug

Status
Not open for further replies.
Level 6
Joined
Jan 16, 2017
Messages
110
SharpCraft, WC3 1.26

I discovered very strange bug while making my map, everytime zombie with 1 specific spell had +100% health bonus from upgrades instantly died right after it was trained.

Even when the zombie does not have that spell then he is working normally and then he gets the spell later by triggers then he instantly dies.

I have literally no idea why it is happening. I made a test map that has just the spell, zombie and upgrade and NO triggers.

Does anyone know how to fix it or why it is happening?
 

Attachments

  • Test123.w3x
    19.6 KB · Views: 30
Level 13
Joined
Jul 15, 2007
Messages
763
They don't have Spell Book ability
The Spell is based on Parasite and Orb of Lightning (new)
i wanted it to have X% chance to infect some unit and after death it would spawn a new zombie

It's most likely the same bug as the spellbook bug.

I'm guessing Parasite is contained within the Orb of Lightning ability as a spell-book of sorts, so the units die when the ability is added/removed as it causes all abilities to be removed and added twice. In your case, a zombie is trained, and its ability data is loaded, causing it's maximum life to become below 0 for that exact moment because of the orb of lightning ability removing your HP upgrade's amount twice, so it dies.
 
Level 6
Joined
Jan 16, 2017
Messages
110
It's most likely the same bug as the spellbook bug.

I'm guessing Parasite is contained within the Orb of Lightning ability as a spell-book of sorts, so the units die when the ability is added/removed as it causes all abilities to be removed and added twice. In your case, a zombie is trained, and its ability data is loaded, causing it's maximum life to become below 0 for that exact moment because of the orb of lightning ability removing your HP upgrade's amount twice, so it dies.
Interesting, is there any way to fix that or prevent it?
 
Level 13
Joined
Jul 15, 2007
Messages
763
You have a few solutions open to you:

  1. Replace Orb of Lightning with a damage engine trigger and use a dummy for the Parasite effect.
  2. Ensure the base health of the zombies is more than double the bonus health provided by the upgrade.
  3. When a unit with the health upgrade enters the map, increase its maximum health with triggers (rather than the upgrade itself) with set unit max HP.
 
Status
Not open for further replies.
Top