Skip to content

Commit

Permalink
Core/Quests: Fixed quest kill crediting in heroic instances
Browse files Browse the repository at this point in the history
--HG--
branch : trunk
  • Loading branch information
Shauren committed Sep 5, 2010
1 parent af3ea4f commit de59ac3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server/game/Entities/Player/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15174,11 +15174,11 @@ void Player::ItemRemovedQuestCheck(uint32 entry, uint32 count)
void Player::KilledMonster(CreatureInfo const* cInfo, uint64 guid)
{
if (cInfo->Entry)
KilledMonsterCredit(cInfo->Entry,guid);
KilledMonsterCredit(cInfo->Entry, guid);

for (uint8 i = 0; i < MAX_KILL_CREDIT; ++i)
if (cInfo->KillCredit[i])
KilledMonsterCredit(cInfo->KillCredit[i],guid);
KilledMonsterCredit(cInfo->KillCredit[i], guid);
}

void Player::KilledMonsterCredit(uint32 entry, uint64 guid)
Expand Down Expand Up @@ -15222,7 +15222,7 @@ void Player::KilledMonsterCredit(uint32 entry, uint64 guid)

uint32 reqkill = qInfo->ReqCreatureOrGOId[j];

if (reqkill == entry)
if (reqkill == real_entry)
{
uint32 reqkillcount = qInfo->ReqCreatureOrGOCount[j];
uint32 curkillcount = q_status.m_creatureOrGOcount[j];
Expand All @@ -15238,7 +15238,7 @@ void Player::KilledMonsterCredit(uint32 entry, uint64 guid)
CompleteQuest(questid);

// same objective target can be in many active quests, but not in 2 objectives for single quest (code optimization).
continue;
break;
}
}
}
Expand Down

0 comments on commit de59ac3

Please sign in to comment.