Couple suggestions:
spell effects.cpp
Code:
@@ -272,6 +276,8 @@
val = cap;
if(val > 0)
+ if(caster)
+ val = GetHealRate(val, caster->GetTarget());
HealDamage(val, caster);
break;
I assume you intended this instead:
Code:
if(val > 0)
{
if(caster && caster->GetTarget())
val = GetHealRate(val, caster->GetTarget());
HealDamage(val, caster);
}
Needed the brackets surrounding it and I added a check to make sure the caster has a target before sending them to the function that does not appear to check for a null pointer in the target. Those null pointers can be nasty :P