View Single Post
  #16  
Old 02-11-2010, 02:07 PM
iRFNA
Fire Beetle
 
Join Date: Dec 2009
Posts: 23
Default

Well, I think I found the problem. There's a check for seeing if a particular spell is a nuke spell in spdat.cpp called IsPureNukeSpell. While it does check to see if the spell alters a target's HP, it neglects to see if that is a positive or negative change. On around line 355, I changed:

Code:
	return
	(
		spells[spell_id].effectid[0] == SE_CurrentHP &&
		effect_count == 1
	);
to

Code:
	return
	(
		spells[spell_id].effectid[0] == SE_CurrentHP &&
		spells[spell_id].base[0] < 0 &&
		effect_count == 1
	);
and I haven't seen my bots healing enemies anymore.
Reply With Quote