[11580] Redundent assigns UNIT_FIELD_FLAGS for pet

Field initilized in Pet::InitStatsForLevel.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
Sid 2011-06-01 05:32:49 +04:00 committed by VladimirMangos
parent 6092bbf502
commit 8251b3febc
2 changed files with 1 additions and 6 deletions

View file

@ -5556,7 +5556,6 @@ void Spell::EffectTameCreature(SpellEffectIndex /*eff_idx*/)
pet->SetCreatorGuid(plr->GetObjectGuid());
pet->setFaction(plr->getFaction());
pet->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->Id);
pet->SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE);
if (plr->IsPvP())
pet->SetPvP(true);
@ -5697,10 +5696,6 @@ void Spell::EffectSummonPet(SpellEffectIndex eff_idx)
NewSummon->GetCharmInfo()->SetPetNumber(pet_number, true);
// this enables pet details window (Shift+P)
// this enables popup window (pet dismiss, cancel), hunter pet additional flags set later
if(m_caster->GetTypeId() == TYPEID_PLAYER)
NewSummon->SetUInt32Value(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE);
if(m_caster->IsPvP())
NewSummon->SetPvP(true);