aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-15 20:19:47 -0500
committermegamage <none@none>2009-04-15 20:19:47 -0500
commit9bf4aaef2e44c50275c79e5dea160e241046d754 (patch)
treedf4efc67cc663a001220fce6be63df729e1ab07a /src
parent28f86fdcb0d4540b4911d548de0193f6d3f8101d (diff)
*Fix a bug that npc's pet has too high level.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 053130fed90..b6eb82bb7d9 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -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