[Messages] Remove duplicate heal message for healing yourself (#3329)

This commit is contained in:
Paul Coene 2023-05-03 16:50:54 -04:00 committed by GitHub
parent 9f4d60ec36
commit 5be2041085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4447,11 +4447,19 @@ void Mob::HealDamage(uint64 amount, Mob* caster, uint16 spell_id)
} }
} }
else { // normal heals else { // normal heals
FilteredMessageString(caster, Chat::NonMelee, FilterSpellDamage, // Message to caster
YOU_HEALED, caster->GetCleanName(), itoa(acthealed)); if (caster->IsClient()) {
caster->FilteredMessageString(caster, Chat::NonMelee,
FilterSpellDamage, YOU_HEAL, GetCleanName(),
itoa(acthealed));
}
caster->FilteredMessageString(caster, Chat::NonMelee, FilterSpellDamage, // Message to target
YOU_HEAL, GetCleanName(), itoa(acthealed)); if (IsClient() && caster != this) {
FilteredMessageString(caster, Chat::NonMelee,
FilterSpellDamage, YOU_HEALED, caster->GetCleanName(),
itoa(acthealed));
}
} }
} else if ( } else if (
CastToClient()->GetFilter(FilterHealOverTime) != FilterShowSelfOnly || CastToClient()->GetFilter(FilterHealOverTime) != FilterShowSelfOnly ||