Core/SAI: implement SMART_EVENT_SUMMONED_UNIT_DIES (82), useable by creatures and gameobjects
Port From (https://github.com/TrinityCore/TrinityCore/commit/d4a1a7a040be0ca0d6428669135bcc64d92be1c2)
This commit is contained in:
@@ -3423,6 +3423,7 @@ namespace Game.AI
|
||||
break;
|
||||
}
|
||||
case SmartEvents.SummonedUnit:
|
||||
case SmartEvents.SummonedUnitDies:
|
||||
{
|
||||
if (!IsCreature(unit))
|
||||
return;
|
||||
@@ -3711,9 +3712,6 @@ namespace Game.AI
|
||||
ProcessAction(e, unit, var0, 0, false, null, null, varString);
|
||||
break;
|
||||
}
|
||||
case SmartEvents.SpellEffectHit:
|
||||
ProcessAction(e, unit, var0);
|
||||
break;
|
||||
default:
|
||||
Log.outError(LogFilter.Sql, "SmartScript.ProcessEvent: Unhandled Event type {0}", e.GetEventType());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user