fix(DB/SAI): Fixed spam chat made by Coilfang Slavemaster and Coilfan… (#13871)

fix(DB/SAI): Fixed spam chat made by Coilfang Slavemaster and Coilfang Slavehandler scripts.

Fixes #1888
This commit is contained in:
UltraNix
2022-12-06 13:41:45 +01:00
committed by GitHub
parent 95652e14d5
commit 975fd8782f
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
--
DELETE FROM `creature_text` WHERE `CreatureID` IN (17805,17959);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(17805,0,0,'Hurry up with it already! The longer you take, the more of a hurtin\ I\m putting on you!',14,0,100,0,0,0,0,0,'Coilfang Slavemaster'),
(17805,0,1,'This is terrible..... my arms grow tired from beating on you lazy peons!',14,0,100,0,0,0,0,0,'Coilfang Slavemaster'),
(17805,0,2,'Too soon! You are slacking off too soon!',14,0,100,0,0,0,0,0,'Coilfang Slavemaster'),
(17805,0,3,'Wake up! Now get up and back to work!',14,0,100,0,0,0,0,0,'Coilfang Slavemaster'),
(17805,0,4,'What is this?! Didn\t mommy and daddy teach you anything?!',14,0,100,0,0,0,0,0,'Coilfang Slavemaster'),
(17805,1,0,'By Nazjatar\s Depths!',12,0,100,0,0,0,0,0,'Coilfang Slavemaster'),
(17805,1,1,'Die, warmblood!',12,0,100,0,0,0,0,0,'Coilfang Slavemaster'),
(17805,1,2,'For the Master!',12,0,100,0,0,0,0,0,'Coilfang Slavemaster'),
(17805,1,3,'Illidan reigns!',12,0,100,0,0,0,0,0,'Coilfang Slavemaster'),
(17805,1,4,'My blood is like venom!',12,0,100,0,0,0,0,0,'Coilfang Slavemaster'),
(17959,0,0,'Hurry up with it already! The longer you take, the more of a hurtin\ I\m putting on you!',14,0,100,0,0,0,0,0,'Coilfang Slavehandler'),
(17959,0,1,'This is terrible..... my arms grow tired from beating on you lazy peons!',14,0,100,0,0,0,0,0,'Coilfang Slavehandler'),
(17959,0,2,'Too soon! You are slacking off too soon!',14,0,100,0,0,0,0,0,'Coilfang Slavehandler'),
(17959,0,3,'Wake up! Now get up and back to work!',14,0,100,0,0,0,0,0,'Coilfang Slavehandler'),
(17959,0,4,'What is this?! Didn\t mommy and daddy teach you anything?!',14,0,100,0,0,0,0,0,'Coilfang Slavehandler'),
(17959,1,0,'By Nazjatar\s Depths!',12,0,100,0,0,0,0,0,'Coilfang Slavehandler'),
(17959,1,1,'Die, warmblood!',12,0,100,0,0,0,0,0,'Coilfang Slavehandler'),
(17959,1,2,'For the Master!',12,0,100,0,0,0,0,0,'Coilfang Slavehandler'),
(17959,1,3,'Illidan reigns!',12,0,100,0,0,0,0,0,'Coilfang Slavehandler'),
(17959,1,4,'My blood is like venom!',12,0,100,0,0,0,0,0,'Coilfang Slavehandler');
UPDATE `smart_scripts` SET `event_chance`=50 WHERE `entryorguid`=17959 AND `source_type`=0 AND `id`=5;
UPDATE `smart_scripts` SET `event_chance`=50 WHERE `entryorguid`=17805 AND `source_type`=0 AND `id`=4;
UPDATE `smart_scripts` SET `event_chance`=50 WHERE `entryorguid`=18206 AND `source_type`=0 AND `id`=0;

View File

@@ -4441,6 +4441,13 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->ExcludeTargetAuraSpell = 51120;
});
// Slap!
ApplySpellFix({ 6754 }, [](SpellInfo* spellInfo)
{
spellInfo->AttributesEx |= SPELL_ATTR1_NO_THREAT;
spellInfo->AttributesEx3 |= SPELL_ATTR3_SUPRESS_TARGET_PROCS;
});
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
{
SpellInfo* spellInfo = mSpellInfoMap[i];