mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[10016] Remove unused RewardSinglePlayerAtKill result.
This commit is contained in:
parent
86439e14ad
commit
0a24a170d1
4 changed files with 5 additions and 7 deletions
|
|
@ -20122,13 +20122,13 @@ bool Player::isHonorOrXPTarget(Unit* pVictim) const
|
|||
return true;
|
||||
}
|
||||
|
||||
bool Player::RewardSinglePlayerAtKill(Unit* pVictim)
|
||||
void Player::RewardSinglePlayerAtKill(Unit* pVictim)
|
||||
{
|
||||
bool PvP = pVictim->isCharmedOwnedByPlayerOrPlayer();
|
||||
uint32 xp = PvP ? 0 : MaNGOS::XP::Gain(this, pVictim);
|
||||
|
||||
// honor can be in PvP and !PvP (racial leader) cases
|
||||
bool honored_kill = RewardHonor(pVictim,1);
|
||||
RewardHonor(pVictim,1);
|
||||
|
||||
// xp and reputation only in !PvP case
|
||||
if(!PvP)
|
||||
|
|
@ -20143,8 +20143,6 @@ bool Player::RewardSinglePlayerAtKill(Unit* pVictim)
|
|||
if(pVictim->GetTypeId()==TYPEID_UNIT)
|
||||
KilledMonster(((Creature*)pVictim)->GetCreatureInfo(), pVictim->GetObjectGuid());
|
||||
}
|
||||
|
||||
return xp || honored_kill;
|
||||
}
|
||||
|
||||
void Player::RewardPlayerAndGroupAtEvent(uint32 creature_id, WorldObject* pRewardSource)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue