Don't call UpdateRestTimer when you're casting on yourself

This commit is contained in:
Michael Cook (mackal) 2018-07-14 19:19:58 -04:00
parent 6ab2871fd1
commit 6ac4154acd

View File

@ -3895,7 +3895,7 @@ bool Mob::SpellOnTarget(uint16 spell_id, Mob *spelltar, bool reflect, bool use_r
spelltar->SetHateAmountOnEnt(this, std::max(newhate, 1)); spelltar->SetHateAmountOnEnt(this, std::max(newhate, 1));
} }
} else if (IsBeneficialSpell(spell_id) && !IsSummonPCSpell(spell_id)) { } else if (IsBeneficialSpell(spell_id) && !IsSummonPCSpell(spell_id)) {
if (spelltar->IsClient() && IsClient()) if (this != spelltar && spelltar->IsClient() && IsClient())
CastToClient()->UpdateRestTimer(spelltar->CastToClient()->GetRestTimer()); CastToClient()->UpdateRestTimer(spelltar->CastToClient()->GetRestTimer());
entity_list.AddHealAggro( entity_list.AddHealAggro(
spelltar, this, spelltar, this,