diff options
author | Shauren <shauren.trinity@gmail.com> | 2013-02-16 19:16:52 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2013-02-16 19:16:52 +0100 |
commit | 17d0ea66605fed938b15442c703cce187b270323 (patch) | |
tree | 62b7645b5cc4b4bb64b842b1f5307bc8fa66293a /src | |
parent | 166a2092fd086953e0679d19e9b7d959c902a9ea (diff) |
Core/Auras: Prevent saving vehicle auras to db for players as they require both caster and target to be in world (which cannot be guaranteed)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/Auras/SpellAuras.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp index 4500152133e..a218e238c6f 100644 --- a/src/server/game/Spells/Auras/SpellAuras.cpp +++ b/src/server/game/Spells/Auras/SpellAuras.cpp @@ -908,6 +908,10 @@ bool Aura::CanBeSaved() const if (HasEffectType(SPELL_AURA_OPEN_STABLE)) return false; + // Can't save vehicle auras, it requires both caster & target to be in world + if (HasEffectType(SPELL_AURA_CONTROL_VEHICLE)) + return false; + // Incanter's Absorbtion - considering the minimal duration and problems with aura stacking // we skip saving this aura // Also for some reason other auras put as MultiSlot crash core on keeping them after restart, |