mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 10:37:02 +00:00
[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:
parent
6092bbf502
commit
8251b3febc
2 changed files with 1 additions and 6 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue