mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
improved fix
This commit is contained in:
@@ -1025,7 +1025,6 @@ bool Aura::CanBeSaved() const
|
||||
case 44413: // Incanter's Absorption
|
||||
case 40075: // Fel Flak Fire
|
||||
case 55849: // Power Spark
|
||||
case 57634: // Magma
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1041,6 +1040,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user