improved fix

This commit is contained in:
Aokromes
2018-04-06 07:49:59 +02:00
parent ffc5e87f3d
commit 4da3cbf3aa
3 changed files with 7 additions and 3 deletions

View File

@@ -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;

View File

@@ -1,2 +1,2 @@
--
DELETE FROM `pet_aura` WHERE `spell`=57634;
DELETE FROM `pet_aura` WHERE `spell` IN (28801, 37025, 42201, 57634);

View File

@@ -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;
}