Fix KillCredit effect when is casted by players. Thanks Azuritus

--HG--
branch : trunk
This commit is contained in:
tartalo
2009-10-24 20:09:02 +02:00
parent 7fb811585e
commit 57a9410e22
+2 -2
View File
@@ -20291,9 +20291,9 @@ bool Player::RewardPlayerAndGroupAtKill(Unit* pVictim)
void Player::RewardPlayerAndGroupAtEvent(uint32 creature_id, WorldObject* pRewardSource)
{
if (!pRewardSource || pRewardSource->GetTypeId() != TYPEID_UNIT)
if (!pRewardSource)
return;
uint64 creature_guid = pRewardSource->GetGUID();
uint64 creature_guid = (pRewardSource->GetTypeId() == TYPEID_UNIT) ? pRewardSource->GetGUID() : uint64(0);
// prepare data for near group iteration
if(Group *pGroup = GetGroup())