Merge pull request #10689 from Discover-/SmartAI-Killed-Monster-Credit

Core/SAI: Also use loot recipient for SMART_ACTION_CALL_KILLEDMONSTER wh...
This commit is contained in:
Nay
2013-09-01 10:02:43 -07:00

View File

@@ -854,7 +854,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
}
case SMART_ACTION_CALL_KILLEDMONSTER:
{
if (e.target.type == SMART_TARGET_NONE) // Loot recipient and his group members
if (e.target.type == SMART_TARGET_NONE || e.target.type == SMART_TARGET_SELF) // Loot recipient and his group members
{
if (!me)
break;