[10738] In fact set pet name to empety state redundent.

Client work propertly also if used default name from creature template (set in create code).

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
TOM_RUS 2010-11-18 23:21:25 +03:00 committed by VladimirMangos
parent 1fe4b1f4bb
commit de66f32882
2 changed files with 5 additions and 5 deletions

View file

@ -4250,7 +4250,7 @@ void Spell::DoSummon(SpellEffectIndex eff_idx)
spawnCreature->SetHealth(spawnCreature->GetMaxHealth()); spawnCreature->SetHealth(spawnCreature->GetMaxHealth());
spawnCreature->SetPower(POWER_MANA, spawnCreature->GetMaxPower(POWER_MANA)); spawnCreature->SetPower(POWER_MANA, spawnCreature->GetMaxPower(POWER_MANA));
spawnCreature->SetName(""); // generated by client //spawnCreature->SetName(""); // generated by client
map->Add((Creature*)spawnCreature); map->Add((Creature*)spawnCreature);
@ -4666,7 +4666,7 @@ void Spell::DoSummonGuardian(SpellEffectIndex eff_idx, uint32 forceFaction)
if (duration > 0) if (duration > 0)
spawnCreature->SetDuration(duration); spawnCreature->SetDuration(duration);
spawnCreature->SetName(""); // generated by client //spawnCreature->SetName(""); // generated by client
spawnCreature->SetOwnerGuid(m_caster->GetObjectGuid()); spawnCreature->SetOwnerGuid(m_caster->GetObjectGuid());
spawnCreature->setPowerType(POWER_MANA); spawnCreature->setPowerType(POWER_MANA);
spawnCreature->SetUInt32Value(UNIT_NPC_FLAGS, spawnCreature->GetCreatureInfo()->npcflag); spawnCreature->SetUInt32Value(UNIT_NPC_FLAGS, spawnCreature->GetCreatureInfo()->npcflag);
@ -7072,7 +7072,7 @@ void Spell::DoSummonTotem(SpellEffectIndex eff_idx, uint8 slot_dbc)
if (slot < MAX_TOTEM_SLOT) if (slot < MAX_TOTEM_SLOT)
m_caster->_AddTotem(TotemSlot(slot),pTotem); m_caster->_AddTotem(TotemSlot(slot),pTotem);
pTotem->SetName(""); // generated by client //pTotem->SetName(""); // generated by client
pTotem->SetOwner(m_caster); pTotem->SetOwner(m_caster);
pTotem->SetTypeBySummonSpell(m_spellInfo); // must be after Create call where m_spells initialized pTotem->SetTypeBySummonSpell(m_spellInfo); // must be after Create call where m_spells initialized
@ -7584,7 +7584,7 @@ void Spell::DoSummonCritter(SpellEffectIndex eff_idx, uint32 forceFaction)
return; return;
} }
critter->SetName(""); // generated by client //critter->SetName(""); // generated by client
critter->SetOwnerGuid(m_caster->GetObjectGuid()); critter->SetOwnerGuid(m_caster->GetObjectGuid());
critter->SetCreatorGuid(m_caster->GetObjectGuid()); critter->SetCreatorGuid(m_caster->GetObjectGuid());

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10737" #define REVISION_NR "10738"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__