diff options
| author | Wyrserth <wyrserth@protonmail.com> | 2019-06-26 18:03:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-26 18:03:03 +0200 |
| commit | 8967cc96df4c1c5c7465e9fd1fa66400f3e992b3 (patch) | |
| tree | 4cbd800a9a06c9c5238a65ccb18504feb5c11cd1 /src/server/game/AI/SmartScripts | |
| parent | 079b77b5fc466f806cb64206881f0034cce61670 (diff) | |
Core/SAI: do not pass old creatureData to UpdateEntry() and keep current health when changing a NPC's entry. (#23493)
Diffstat (limited to 'src/server/game/AI/SmartScripts')
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index ef9a92c8f92..25a8b9d6962 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -1031,7 +1031,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u { for (WorldObject* target : targets) if (IsCreature(target)) - target->ToCreature()->UpdateEntry(e.action.updateTemplate.creature, target->ToCreature()->GetCreatureData(), e.action.updateTemplate.updateLevel != 0); + target->ToCreature()->UpdateEntry(e.action.updateTemplate.creature, nullptr, e.action.updateTemplate.updateLevel != 0); break; } case SMART_ACTION_DIE: |
