Core/SmartAI: Implement SMART_EVENT_SUMMONED_UNIT and SMART_EVENT_SUMMON_DESPAWNED for GameObject owners
Port From (https://github.com/TrinityCore/TrinityCore/commit/6034992dffbbd511f59e77c13285da282d9c737d)
This commit is contained in:
@@ -1179,6 +1179,16 @@ namespace Game.AI
|
||||
GetScript().ProcessEventsFor(SmartEvents.SpellHit, unit, 0, 0, false, spellInfo);
|
||||
}
|
||||
|
||||
public override void JustSummoned(Creature creature)
|
||||
{
|
||||
GetScript().ProcessEventsFor(SmartEvents.SummonedUnit, creature);
|
||||
}
|
||||
|
||||
public override void SummonedCreatureDespawn(Creature unit)
|
||||
{
|
||||
GetScript().ProcessEventsFor(SmartEvents.SummonDespawned, unit, unit.GetEntry());
|
||||
}
|
||||
|
||||
public void SetGossipReturn(bool val) { _gossipReturn = val; }
|
||||
|
||||
public SmartScript GetScript() { return _script; }
|
||||
|
||||
Reference in New Issue
Block a user