[11221] Fixed typo after recent code move to Spell::EffectTameCreature

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
DasBlub 2011-03-06 09:19:38 +03:00 committed by VladimirMangos
parent d3947b2026
commit c132e54f73
2 changed files with 3 additions and 3 deletions

View file

@ -5326,10 +5326,10 @@ void Spell::EffectTameCreature(SpellEffectIndex /*eff_idx*/)
pet->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id);
pet->SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE);
if (pet->IsPvP())
if (plr->IsPvP())
pet->SetPvP(true);
if (pet->IsFFAPvP())
if (plr->IsFFAPvP())
pet->SetFFAPvP(true);
// level of hunter pet can't be less owner level at 5 levels