diff options
| author | Treeston <treeston.mmoc@gmail.com> | 2017-08-06 16:07:15 +0200 | 
|---|---|---|
| committer | Treeston <treeston.mmoc@gmail.com> | 2017-08-06 16:07:30 +0200 | 
| commit | 184c45cfe0fbe4f3e4fb701f0f99994df98bdc8a (patch) | |
| tree | 97f7e52a1ac5d720007540d9508be2bc9dabcfa7 /src/server/game/AI/SmartScripts | |
| parent | dbda060ae7a31135044495470e46276dad0bcc0e (diff) | |
Core/Scripts: dynamic_spawning follow-up, I had forgotten JustRespawned existed.
- Rename JustRespawned to JustAppeared, which better matches its behavior anyway.
- Properly invoke JustAppeared for new (re-)spawns - fixes #20111.
- Fix Thaddius script to work with dynamic_spawning (mostly unrelated to the above) - Feugen/Stalagg should really be a summon group, but I don't have time to fix that right now.
- Fix default value for DynamicEscortNPC to match worldserver.conf.dist.
Diffstat (limited to 'src/server/game/AI/SmartScripts')
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.cpp | 2 | ||||
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartAI.h | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/src/server/game/AI/SmartScripts/SmartAI.cpp b/src/server/game/AI/SmartScripts/SmartAI.cpp index 5aa2550a704..71cb6f7fdad 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.cpp +++ b/src/server/game/AI/SmartScripts/SmartAI.cpp @@ -566,7 +566,7 @@ bool SmartAI::AssistPlayerInCombatAgainst(Unit* who)      return false;  } -void SmartAI::JustRespawned() +void SmartAI::JustAppeared()  {      mDespawnTime = 0;      mDespawnState = 0; diff --git a/src/server/game/AI/SmartScripts/SmartAI.h b/src/server/game/AI/SmartScripts/SmartAI.h index b5ed74c4edb..3834fd01d07 100644 --- a/src/server/game/AI/SmartScripts/SmartAI.h +++ b/src/server/game/AI/SmartScripts/SmartAI.h @@ -71,7 +71,7 @@ class TC_GAME_API SmartAI : public CreatureAI          bool IsEscortInvokerInRange();          // Called when creature is spawned or respawned -        void JustRespawned() override; +        void JustAppeared() override;          // Called at reaching home after evade, InitializeAI(), EnterEvadeMode() for resetting variables          void JustReachedHome() override; | 
