Core: Rename GetCreatureInfo to GetCreatureTemplate and minor cleanup here and there
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user