aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGooyeth <migmadmu@hotmail.com>2018-03-24 09:03:35 -0600
committerAriel Silva <ariel-@users.noreply.github.com>2018-04-03 00:36:02 -0300
commit1ea75f413ce21f586654c80ba77ecf8b927d7a3b (patch)
tree9ad8f3701e61b50154cc12860bb6de466aa8600a /src
parentcde629e3a166e813707c89f344851d5b8c95ccd1 (diff)
improved fix
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Auras/SpellAuras.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp
index 3002660d039..a9b69584732 100644
--- a/src/server/game/Spells/Auras/SpellAuras.cpp
+++ b/src/server/game/Spells/Auras/SpellAuras.cpp
@@ -1149,7 +1149,6 @@ bool Aura::CanBeSaved() const
case 44413: // Incanter's Absorption
case 40075: // Fel Flak Fire
case 55849: // Power Spark
- case 57634: // Magma
return false;
}
@@ -1161,6 +1160,11 @@ bool Aura::CanBeSaved() const
if (GetCastItemGUID() && IsPermanent())
return false;
+ // don't save liquid auras
+ for (LiquidTypeEntry const* liquid : sLiquidTypeStore)
+ if (liquid->SpellId && liquid->SpellId == GetId())
+ return false;
+
return true;
}