mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10470] Fixed totem owner faction/level set for creature onwer case.
When totem created creature owner alos not in world yet. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
54d991ef3a
commit
73a85b0989
4 changed files with 8 additions and 11 deletions
|
|
@ -6889,7 +6889,7 @@ void Spell::DoSummonTotem(SpellEffectIndex eff_idx, uint8 slot_dbc)
|
|||
if (slot < MAX_TOTEM_SLOT)
|
||||
m_caster->_AddTotem(TotemSlot(slot),pTotem);
|
||||
|
||||
pTotem->SetOwner(m_caster->GetGUID());
|
||||
pTotem->SetOwner(m_caster);
|
||||
pTotem->SetTypeBySummonSpell(m_spellInfo); // must be after Create call where m_spells initialized
|
||||
|
||||
int32 duration=GetSpellDuration(m_spellInfo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue