Core: Rename GetCreatureInfo to GetCreatureTemplate and minor cleanup here and there

This commit is contained in:
Spp
2012-02-27 14:58:47 +01:00
parent 3e622ee7ac
commit d38bc3a178
47 changed files with 317 additions and 317 deletions
@@ -502,7 +502,7 @@ public:
void SummonedCreatureDespawn(Creature* summon)
{
if (summon->GetCreatureInfo()->Entry == FLAME_OF_AZZINOTH)
if (summon->GetCreatureTemplate()->Entry == FLAME_OF_AZZINOTH)
{
for (uint8 i = 0; i < 2; ++i)
if (summon->GetGUID() == FlameGUID[i])
@@ -523,7 +523,7 @@ public:
me->GetMotionMaster()->MoveTargetedHome();
Creature* Credit = me->FindNearestCreature(NPC_QUEST_CREDIT, 50, true);
if (player && Credit)
player->KilledMonster(Credit->GetCreatureInfo(), Credit->GetGUID());
player->KilledMonster(Credit->GetCreatureTemplate(), Credit->GetGUID());
}
}