Thread: Bugfixes
View Single Post
  #1  
Old 11-29-2012, 06:40 AM
ftww ftww is offline
Registered Member
 
Join Date: Nov 2012
Posts: 1
Default Pygmy hitpoint fix?

With regard to this bug:
Quote:
Pygmy reduces to 1 HP: Build 6249. Pygmy reduces the health of enemy stacks to 1 HP per unit instead of -20%/-30%/-40% of their max health.
Does the following look like the right fix? In spells.lua, line 2446:
Code:
Attack.act_apply_par_spell( "health", -bhealth*penalty, 0, 0, -100, false)
Change to:
Code:
Attack.act_apply_par_spell( "health", -bhealth*penalty/100, 0, 0, -100, false)
Reply With Quote