mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[11519] Fix player totem icons (those under player portrait)
SMSG_TOTEM_CREATED must be sent before totem added to map. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
569d7cdc42
commit
b46237b643
2 changed files with 4 additions and 3 deletions
|
|
@ -7997,8 +7997,7 @@ void Spell::DoSummonTotem(SpellEffectIndex eff_idx, uint8 slot_dbc)
|
|||
if (m_caster->IsFFAPvP())
|
||||
pTotem->SetFFAPvP(true);
|
||||
|
||||
pTotem->Summon(m_caster);
|
||||
|
||||
// sending SMSG_TOTEM_CREATED before add to map (done in Summon)
|
||||
if (slot < MAX_TOTEM_SLOT && m_caster->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
WorldPacket data(SMSG_TOTEM_CREATED, 1 + 8 + 4 + 4);
|
||||
|
|
@ -8008,6 +8007,8 @@ void Spell::DoSummonTotem(SpellEffectIndex eff_idx, uint8 slot_dbc)
|
|||
data << uint32(m_spellInfo->Id);
|
||||
((Player*)m_caster)->SendDirectMessage(&data);
|
||||
}
|
||||
|
||||
pTotem->Summon(m_caster);
|
||||
}
|
||||
|
||||
void Spell::EffectEnchantHeldItem(SpellEffectIndex eff_idx)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11518"
|
||||
#define REVISION_NR "11519"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue