Core/SmartAI: Fix SMART_EVENT_SUMMON_DESPAWNED

Fix SMART_EVENT_SUMMON_DESPAWNED not working when event_param1 was set to any value other than 0
This commit is contained in:
jackpoz
2019-05-23 20:54:09 +02:00
parent 9dbedb6b64
commit 457fc22473

View File

@@ -648,7 +648,7 @@ void SmartAI::DamageDealt(Unit* doneTo, uint32& damage, DamageEffectType /*damag
void SmartAI::SummonedCreatureDespawn(Creature* unit)
{
GetScript()->ProcessEventsFor(SMART_EVENT_SUMMON_DESPAWNED, unit);
GetScript()->ProcessEventsFor(SMART_EVENT_SUMMON_DESPAWNED, unit, unit->GetEntry());
}
void SmartAI::CorpseRemoved(uint32& respawnDelay)