aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXanadu <none@none>2010-07-31 03:23:14 +0200
committerXanadu <none@none>2010-07-31 03:23:14 +0200
commitcf4d89990e682f5d21331f9ee4e31f4c4084a3f8 (patch)
treea69172eabef9db6ba87e29cbe283f61bcf3a07a3
parentc298bdb66292587a6a178f5d462fcc20cbaf3b32 (diff)
Don't save Call Stabled Pet aura on player save, since it is impossible to open the stable dialog when player is loaded.
--HG-- branch : trunk
-rw-r--r--src/server/game/Spells/Auras/SpellAuras.cpp4
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 44ba34bf981..b68f3cfa79b 100644
--- a/src/server/game/Spells/Auras/SpellAuras.cpp
+++ b/src/server/game/Spells/Auras/SpellAuras.cpp
@@ -749,6 +749,10 @@ bool Aura::CanBeSaved() const
if (HasEffectType(SPELL_AURA_CONVERT_RUNE))
return false;
+ // No point in saving this, since the stable dialog can't be open on aura load anyway.
+ if (HasEffectType(SPELL_AURA_OPEN_STABLE))
+ return false;
+
return true;
}