diff options
| author | MitchesD <majklprofik@seznam.cz> | 2015-06-21 13:40:24 +0200 |
|---|---|---|
| committer | MitchesD <majklprofik@seznam.cz> | 2015-06-21 13:40:24 +0200 |
| commit | 530074f453c568dc4065994ad908d3bfc7388534 (patch) | |
| tree | 711e05ec7b2ed2a3b368624c2fc35a0e41a8faaa /src | |
| parent | 7e9f4dfe45522872c0dac675c1cd95e908907906 (diff) | |
Core/Creature: fixed loading of creature auras on respawn, deathState needs to be set to ALIVE before trying to AddAuras (which fails with different deathState than ALIVE)
Closes https://github.com/TrinityCore/TrinityCore/issues/4150
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Entities/Creature/Creature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index 70a2ab2307a..3e2f1874147 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -1547,9 +1547,9 @@ void Creature::setDeathState(DeathState s) SetUInt64Value(UNIT_NPC_FLAGS, cinfo->npcflag); ClearUnitState(uint32(UNIT_STATE_ALL_STATE & ~UNIT_STATE_IGNORE_PATHFINDING)); SetMeleeDamageSchool(SpellSchools(cinfo->dmgschool)); - LoadCreaturesAddon(true); Motion_Initialize(); Unit::setDeathState(ALIVE); + LoadCreaturesAddon(true); } } |
