[7948] Use SetFaction instead explcit field set, other cleanups. Author: NoFantasy

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-03 19:29:55 -05:00
parent fc4f7e6cf1
commit e3390806a9
5 changed files with 18 additions and 18 deletions

View File

@@ -12951,7 +12951,7 @@ Pet* Unit::CreateTamedPetFrom(Creature* creatureTarget,uint32 spell_id)
}
pet->SetCreatorGUID(GetGUID());
pet->SetUInt32Value(UNIT_FIELD_FACTIONTEMPLATE, getFaction());
pet->setFaction(getFaction());
pet->SetUInt32Value(UNIT_CREATED_BY_SPELL, spell_id);
if(GetTypeId()==TYPEID_PLAYER)