Advertisement
Guest User

Untitled

a guest
Apr 6th, 2015
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. else
  2. {
  3. Unit* owner = (*itr)->ToUnit()->GetOwner())
  4. if (owner && owner->GetTypeId() == TYPEID_PLAYER)
  5. {
  6. if (Player* player = owner->ToPlayer())
  7. {
  8. player->KilledMonsterCredit(e.action.killedMonster.creature);
  9. TC_LOG_DEBUG("scripts.ai", "SmartScript::ProcessAction: SMART_ACTION_CALL_KILLEDMONSTER: Player %u, Killcredit: %u", player->GetGUIDLow(), e.action.killedMonster.creature)
  10. }
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement