mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[10246] Restore work killCredit and kill achievements in regular difficulty instances.
This commit is contained in:
parent
384915b0d0
commit
9d8b66cf93
4 changed files with 6 additions and 5 deletions
|
|
@ -6262,6 +6262,7 @@ void Player::RewardReputation(Unit *pVictim, float rate)
|
|||
if(!pVictim || pVictim->GetTypeId() == TYPEID_PLAYER)
|
||||
return;
|
||||
|
||||
// used current difficulty creature entry instead normal version (GetEntry())
|
||||
ReputationOnKillEntry const* Rep = sObjectMgr.GetReputationOnKilEntry(((Creature*)pVictim)->GetCreatureInfo()->Entry);
|
||||
|
||||
if(!Rep)
|
||||
|
|
@ -20260,7 +20261,8 @@ void Player::RewardSinglePlayerAtKill(Unit* pVictim)
|
|||
|
||||
// normal creature (not pet/etc) can be only in !PvP case
|
||||
if(pVictim->GetTypeId()==TYPEID_UNIT)
|
||||
KilledMonster(((Creature*)pVictim)->GetCreatureInfo(), pVictim->GetObjectGuid());
|
||||
if(CreatureInfo const* normalInfo = ObjectMgr::GetCreatureTemplate(pVictim->GetEntry()))
|
||||
KilledMonster(normalInfo, pVictim->GetObjectGuid());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue