Core/PacketiO: Rename Unk field in SMSG_SPELL_ABSORB_LOG

This commit is contained in:
Shauren
2025-03-12 20:01:35 +01:00
parent 3ae9dfd4f5
commit 64e5f9cce9
3 changed files with 4 additions and 3 deletions

View File

@@ -153,8 +153,9 @@ void Object::BuildCreateUpdateBlockForPlayer(UpdateData* data, Player* target) c
objectType = TYPEID_ACTIVE_PLAYER;
}
if (WorldObject const* worldObject = dynamic_cast<WorldObject const*>(this))
if (IsWorldObject())
{
WorldObject const* worldObject = static_cast<WorldObject const*>(this);
if (!flags.MovementUpdate && !worldObject->m_movementInfo.transport.guid.IsEmpty())
flags.MovementTransport = true;

View File

@@ -450,7 +450,7 @@ WorldPacket const* SpellAbsorbLog::Write()
for (Spells::SpellSupportInfo const& supportInfo : Supporters)
*this << supportInfo;
WriteBit(Unk);
WriteBit(Crit);
WriteLogDataBit();
FlushBits();
WriteLogData();

View File

@@ -338,7 +338,7 @@ namespace WorldPackets
int32 AbsorbSpellID = 0;
int32 Absorbed = 0;
int32 OriginalDamage = 0;
bool Unk = false;
bool Crit = false;
std::vector<Spells::SpellSupportInfo> Supporters;
};