Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else
- {
- Unit* owner = (*itr)->ToUnit()->GetOwner())
- if (owner && owner->GetTypeId() == TYPEID_PLAYER)
- {
- if (Player* player = owner->ToPlayer())
- {
- player->KilledMonsterCredit(e.action.killedMonster.creature);
- TC_LOG_DEBUG("scripts.ai", "SmartScript::ProcessAction: SMART_ACTION_CALL_KILLEDMONSTER: Player %u, Killcredit: %u", player->GetGUIDLow(), e.action.killedMonster.creature)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement