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:
hondacrx
2022-02-27 13:57:18 -05:00
parent c4fa1a27ea
commit 1b28a8260c
4 changed files with 16 additions and 11 deletions
+1 -3
View File
@@ -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;