Mislead bug in BG2EE(at least) engine
Insomniator
Member Posts: 1
If creature with high HitPoints cast Mislead on self, copy will has undefined HitPoints (on BG2EE is just zero).
Bug due programmer's error in BioWare's original CGameEffectCopySelf::ApplyEffect(), signed short m_baseStats.m_hitPoints multiply by 100, then divide by 50. If HitPoints above 327 (npc probably can achieves this such values at Legacy of Bhaal Mode) engine get "signed short overflow" because 328*100 impossible for signed short
Bug due programmer's error in BioWare's original CGameEffectCopySelf::ApplyEffect(), signed short m_baseStats.m_hitPoints multiply by 100, then divide by 50. If HitPoints above 327 (npc probably can achieves this such values at Legacy of Bhaal Mode) engine get "signed short overflow" because 328*100 impossible for signed short
0
Comments
Now, why it applies such an effect in the first place is the bigger issue.
An easy fix for Mislead would be to just apply the correct healing effect in MISLEAD.SPL.