diff options
| author | jackpoz <giacomopoz@gmail.com> | 2019-05-23 20:54:09 +0200 |
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2019-05-23 20:54:09 +0200 |
| commit | 457fc224733cc78cedc5e956442a9f5d7bd2f049 (patch) | |
| tree | a5ff76e4e32d8452a34a2b5fb9f39ae0d6ec3f9c | |
| parent | 9dbedb6b644860020e5abd369fb59c63f49727b8 (diff) | |
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
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index f3781242d2a..83d07dc78e1 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -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) |
