mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 08:00:48 +01:00
improved fix
This commit is contained in:
@@ -2955,7 +2955,7 @@ INSERT INTO `updates` VALUES
|
||||
('2018_02_16_00_characters.sql','F1254689CE8A0B0AF149E557830287FF583B8D91','ARCHIVED','2018-02-16 00:00:00',0),
|
||||
('2018_03_16_00_characters.sql','722EAFB7F508882F584DCAE61F97F1A11EDE126E','ARCHIVED','2018-03-16 00:00:00',0),
|
||||
('2018_03_25_00_characters.sql','4FE3C6866A6DCD4926D451F6009464D290C2EF1F','ARCHIVED','2018-03-25 00:00:00',0),
|
||||
('9999_99_99_99_characters.sql','EAE07A3E42B5E732FFEBEC88717A5BFA696B33FB','ARCHIVED','2018-03-23 12:46:28',0);
|
||||
('9999_99_99_99_characters.sql','A1543319D97AC030143A61D4CE40CB9A017B8232','ARCHIVED','2018-03-23 12:46:28',0);
|
||||
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
--
|
||||
DELETE FROM `pet_aura` WHERE `spell`=57634;
|
||||
DELETE FROM `pet_aura` WHERE `spell` IN (28801, 37025, 42201, 57634);
|
||||
|
||||
@@ -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