Skip to content

Commit

Permalink
Fix Issue #2235: SMSG_SPELLDAMAGESHIELD sending incorrect values to set
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankenFaust authored and killerwife committed Jul 27, 2020
1 parent 8f58917 commit 0a8082c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/game/Entities/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1979,10 +1979,9 @@ void Unit::DealMeleeDamage(CalcDamageInfo* calcDamageInfo, bool durabilityLoss)

Unit::DealDamageMods(victim, this, damage, nullptr, SPELL_DIRECT_DAMAGE, spellProto);

WorldPacket data(SMSG_SPELLDAMAGESHIELD, (8 + 8 + 4 + 4 + 4));
WorldPacket data(SMSG_SPELLDAMAGESHIELD, (8 + 8 + 4 + 4));
data << victim->GetObjectGuid();
data << GetObjectGuid();
data << uint32(spellProto->Id);
data << uint32(damage); // Damage
data << uint32(spellProto->School);
victim->SendMessageToSet(data, true);
Expand Down

0 comments on commit 0a8082c

Please sign in to comment.