[Bug Fix] Fix Swarm Pet Damage Messages (#4383)

This commit is contained in:
Alex King 2024-06-04 18:50:08 -04:00 committed by GitHub
parent 1e57a0372f
commit b1aa087b9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4593,10 +4593,10 @@ void Mob::CommonDamage(Mob* attacker, int64 &damage, const uint16 spell_id, cons
//this was done to simplify the code here (since we can only effectively skip one mob on queue)
eqFilterType filter;
Mob* skip = attacker;
if (attacker && attacker->IsPet() && !attacker->IsBot()) {
Mob* owner = attacker ? attacker->GetOwner() : nullptr;
if (attacker && owner && !attacker->IsBot()) {
//attacker is a pet, let pet owners see their pet's damage
Mob* owner = attacker->GetOwner();
if (owner && owner->IsClient()) {
if (owner->IsClient()) {
if (FromDamageShield && damage > 0) {
//special crap for spell damage, looks hackish to me
char val1[20] = { 0 };