fix(Script/Quest): Plagued Lands [2118] (#9541)

This commit is contained in:
Malcrom
2021-12-16 05:35:06 -04:00
committed by GitHub
parent cbdc39ce1e
commit 8545257cc8
3 changed files with 293 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1638832657384544715');
UPDATE `creature_template` SET `AIName`='', `ScriptName`='npc_tharnarian' WHERE `entry`=3701;
UPDATE `creature_template` SET `ScriptName`='npc_rabid_thistle_bear' WHERE `entry`=2164;
UPDATE `gameobject_template` SET `ScriptName`='go_bear_trap' WHERE `entry`=109515;
UPDATE `gameobject_template` SET `AIName`='' WHERE `entry`=111148;
DELETE FROM `smart_scripts` WHERE `entryorguid`=111148 AND `source_type`=1;
DELETE FROM `smart_scripts` WHERE `entryorguid`=2164 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=216400 AND `source_type`=9;
DELETE FROM `smart_scripts` WHERE `entryorguid`=3701 AND `source_type`=0;
DELETE FROM `smart_scripts` WHERE `entryorguid`=370100 AND `source_type`=9;
-- Condition for source Spell implicit target condition type Object entry guid
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceGroup`=1 AND `SourceEntry`=9439 AND `SourceId`=0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(13, 1, 9439, 0, 0, 31, 0, 3, 2164, 0, 0, 0, 0, '', 'Bear Captured in Trap (effect 0) will hit the potential target of the spell if target is Rabid Thistle Bear.');