mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 02:46:33 +01:00
*Fix a bug that npc's pet has too high level.
--HG-- branch : trunk
This commit is contained in:
@@ -3914,14 +3914,16 @@ void Spell::EffectSummonPet(uint32 i)
|
||||
owner = m_originalCaster->GetCharmerOrOwnerPlayerOrPlayerItself();
|
||||
}
|
||||
|
||||
uint32 petentry = m_spellInfo->EffectMiscValue[i];
|
||||
|
||||
if(!owner)
|
||||
{
|
||||
EffectSummonWild(i);
|
||||
SummonPropertiesEntry const *properties = sSummonPropertiesStore.LookupEntry(67);
|
||||
if(properties)
|
||||
SummonGuardian(petentry, properties);
|
||||
return;
|
||||
}
|
||||
|
||||
uint32 petentry = m_spellInfo->EffectMiscValue[i];
|
||||
|
||||
Pet *OldSummon = owner->GetPet();
|
||||
|
||||
// if pet requested type already exist
|
||||
|
||||
Reference in New Issue
Block a user