[Cleanup] Fix filter condition in attack.cpp (#3218)

# Notes
- This condition was causing them to be used as `booleans` versus being checked individually.
This commit is contained in:
Alex King 2023-04-05 10:31:34 -04:00 committed by GitHub
parent 89b3a04eb3
commit 64d5b54e65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4458,8 +4458,10 @@ void Mob::HealDamage(uint64 amount, Mob* caster, uint16 spell_id)
caster->FilteredMessageString(caster, Chat::NonMelee, FilterSpellDamage,
YOU_HEAL, GetCleanName(), itoa(acthealed));
}
}
else if (CastToClient()->GetFilter(FilterHealOverTime) != (FilterShowSelfOnly || FilterHide)) {
} else if (
CastToClient()->GetFilter(FilterHealOverTime) != FilterShowSelfOnly ||
CastToClient()->GetFilter(FilterHealOverTime) != FilterHide
) {
Message(Chat::NonMelee, "You have been healed for %d points of damage.", acthealed);
}
}