mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Fix SMSG_POWER_UPDATE
This commit is contained in:
@@ -6348,7 +6348,6 @@ void Unit::RemoveBindSightAuras()
|
||||
void Unit::RemoveCharmAuras()
|
||||
{
|
||||
RemoveAurasByType(SPELL_AURA_MOD_CHARM);
|
||||
RemoveAurasByType(SPELL_AURA_MOD_POSSESS_PET);
|
||||
RemoveAurasByType(SPELL_AURA_MOD_POSSESS);
|
||||
RemoveAurasByType(SPELL_AURA_AOE_CHARM);
|
||||
}
|
||||
@@ -9850,7 +9849,7 @@ void Unit::SetPower(Powers power, int32 val)
|
||||
WorldPacket data(SMSG_POWER_UPDATE, 8 + 4 + 1 + 4);
|
||||
data << GetPackGUID();
|
||||
data << uint32(1); //power count
|
||||
data << uint8(powerIndex);
|
||||
data << uint8(power);
|
||||
data << int32(val);
|
||||
SendMessageToSet(&data, GetTypeId() == TYPEID_PLAYER);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user