Merge branch 'master' into Playerbot

This commit is contained in:
Yunfan Li
2024-10-04 21:57:35 +08:00
90 changed files with 381 additions and 169 deletions
@@ -0,0 +1,2 @@
-- DB update 2024_09_28_02 -> 2024_10_01_00
UPDATE `creature_model_info` SET `BoundingRadius` = 4, `CombatReach` = 8 WHERE `DisplayID` = 20431;
@@ -0,0 +1,4 @@
-- DB update 2024_10_01_00 -> 2024_10_01_01
--
-- visibilityDistanceType to infinite for Orgrim's Hammer and The Skybreaker marker npcs
UPDATE `creature_addon` SET `visibilityDistanceType` = 5 WHERE `guid` IN (134846, 134847);
@@ -0,0 +1,25 @@
-- DB update 2024_10_01_01 -> 2024_10_01_02
-- Rogue, elementalist, spiritbinder
UPDATE `creature_template` SET `faction` = 16, `VerifiedBuild` = 53788 WHERE `entry` IN (23318, 23523, 23524);
-- Shade of Akama
UPDATE `creature_template` SET `faction` = 1692, `VerifiedBuild` = 53788 WHERE `entry` = 22841;
-- Ashtongue Defender
UPDATE `creature_template` SET `faction` = 1847, `VerifiedBuild` = 53788 WHERE `entry` = 23216;
-- Sorcerer, channeler
UPDATE `creature_template` SET `faction` = 1849, `VerifiedBuild` = 53788 WHERE `entry` IN (23215, 23421);
-- SAI
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 23318) AND (`source_type` = 0) AND (`id` IN (2));
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(23318, 0, 2, 0, 7, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 4, 0, 0, 0, 0, 0, 9, 23210, 0, 100, 0, 0, 0, 0, 0, 'Ashtongue Rogue - On Evade - Do Action');
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 23523) AND (`source_type` = 0) AND (`id` IN (2));
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(23523, 0, 2, 0, 7, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 4, 0, 0, 0, 0, 0, 9, 23210, 0, 100, 0, 0, 0, 0, 0, 'Ashtongue Elementalist - On Evade - Do Action');
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 23524) AND (`source_type` = 0) AND (`id` IN (2));
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(23524, 0, 2, 0, 7, 0, 100, 0, 0, 0, 0, 0, 0, 0, 223, 4, 0, 0, 0, 0, 0, 9, 23210, 0, 100, 0, 0, 0, 0, 0, 'Ashtongue Spiritbinder - On Evade - Do Action');
@@ -0,0 +1,60 @@
-- DB update 2024_10_01_02 -> 2024_10_01_03
-- add gameobjects to transports
DELETE FROM `gameobject` WHERE (`id` IN (164759, 164760, 164761, 164762, 164763, 164764, 164765, 164766, 164767, 186408, 186409, 186410, 186411, 186412, 186413, 186414, 186415, 186416, 186417, 193031, 193032, 193033, 193034, 193035, 193036, 193037, 191640))
AND (`guid` BETWEEN 1288 AND 1332);
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `ScriptName`, `VerifiedBuild`) VALUES
-- Wooden Chair
-- 588 Ship (The Bravery) - Auberdine, Darkshore and Stormwind Harbor (Boat, Alliance ("The Bravery"))
(1288, 164759, 588, 0, 0, 1, 1, 17.23059654235839843, -0.62951797246932983, 6.063879013061523437, 0.671952366828918457, 0, 0, 0.329690933227539062, 0.944088935852050781, 120, 255, 1, "", 48632),
(1289, 164760, 588, 0, 0, 1, 1, 18.34792137145996093, 0.407492995262145996, 6.063879013061523437, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, 120, 255, 1, "", 48632),
(1290, 164761, 588, 0, 0, 1, 1, 14.03516578674316406, -0.71994698047637939, 6.096680164337158203, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, 120, 255, 1, "", 48632),
(1291, 164762, 588, 0, 0, 1, 1, 12.84190177917480468, -1.87944495677947998, 6.096680164337158203, 0.671952366828918457, 0, 0, 0.329690933227539062, 0.944088935852050781, 120, 255, 1, "", 49345),
(1292, 164763, 588, 0, 0, 1, 1, 11.21061420440673828, 2.581463098526000976, 6.096820831298828125, 4.773476600646972656, 0, 0, -0.68518257141113281, 0.728371381759643554, 120, 255, 1, "", 48632),
(1293, 164764, 588, 0, 0, 1, 1, 11.28876590728759765, 1.464622020721435546, 6.096820831298828125, 1.553344011306762695, 0, 0, 0.700909614562988281, 0.71325010061264038, 120, 255, 1, "", 48632),
(1294, 164765, 588, 0, 0, 1, 1, 5.51160287857055664, 10.92694664001464843, 6.099214076995849609, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, 120, 255, 1, "", 48632),
(1295, 164766, 588, 0, 0, 1, 1, 4.39427804946899414, 9.889936447143554687, 6.099214076995849609, 0.671952366828918457, 0, 0, 0.329690933227539062, 0.944088935852050781, 120, 255, 1, "", 48632),
(1296, 164767, 588, 0, 0, 1, 1, 39.2127532958984375, -2.40047001838684082, 6.098138809204101562, 2.679079532623291015, 0, 0, 0.973379135131835937, 0.229200854897499084, 120, 255, 1, "", 48632),
-- 584 Ship (The Lady Mehley) - Menethil Harbor, Wetlands and Theramore Isle, Dustwallow Marsh (Boat, Alliance ("The Lady Mehley"))
(1297, 164759, 584, 0, 0, 1, 1, 17.23059654235839843, -0.62951797246932983, 6.063879013061523437, 0.671952366828918457, 0, 0, 0.329690933227539062, 0.944088935852050781, 120, 255, 1, "", 48632),
(1298, 164760, 584, 0, 0, 1, 1, 18.34792137145996093, 0.407492995262145996, 6.063879013061523437, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, 120, 255, 1, "", 48632),
(1299, 164761, 584, 0, 0, 1, 1, 14.03516578674316406, -0.71994698047637939, 6.096680164337158203, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, 120, 255, 1, "", 48632),
(1300, 164762, 584, 0, 0, 1, 1, 12.84190177917480468, -1.87944495677947998, 6.096680164337158203, 0.671952366828918457, 0, 0, 0.329690933227539062, 0.944088935852050781, 120, 255, 1, "", 49345),
(1301, 164763, 584, 0, 0, 1, 1, 11.21061420440673828, 2.581463098526000976, 6.096820831298828125, 4.773476600646972656, 0, 0, -0.68518257141113281, 0.728371381759643554, 120, 255, 1, "", 48632),
(1302, 164764, 584, 0, 0, 1, 1, 11.28876590728759765, 1.464622020721435546, 6.096820831298828125, 1.553344011306762695, 0, 0, 0.700909614562988281, 0.71325010061264038, 120, 255, 1, "", 48632),
(1303, 164765, 584, 0, 0, 1, 1, 5.51160287857055664, 10.92694664001464843, 6.099214076995849609, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, 120, 255, 1, "", 48632),
(1304, 164766, 584, 0, 0, 1, 1, 4.39427804946899414, 9.889936447143554687, 6.099214076995849609, 0.671952366828918457, 0, 0, 0.329690933227539062, 0.944088935852050781, 120, 255, 1, "", 48632),
(1305, 164767, 584, 0, 0, 1, 1, 39.2127532958984375, -2.40047001838684082, 6.098138809204101562, 2.679079532623291015, 0, 0, 0.973379135131835937, 0.229200854897499084, 120, 255, 1, "", 48632),
-- 593 Ship (The Maiden's Fancy) - Booty Bay, Stranglethorn Vale and Ratchet, The Barrens (Boat, Neutral ("The Maiden's Fancy"))
(1306, 164759, 593, 0, 0, 1, 1, 17.23059654235839843, -0.62951797246932983, 6.063879013061523437, 0.671952366828918457, 0, 0, 0.329690933227539062, 0.944088935852050781, 120, 255, 1, "", 48632),
(1307, 164760, 593, 0, 0, 1, 1, 18.34792137145996093, 0.407492995262145996, 6.063879013061523437, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, 120, 255, 1, "", 48632),
(1308, 164761, 593, 0, 0, 1, 1, 14.03516578674316406, -0.71994698047637939, 6.096680164337158203, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, 120, 255, 1, "", 48632),
(1309, 164762, 593, 0, 0, 1, 1, 12.84190177917480468, -1.87944495677947998, 6.096680164337158203, 0.671952366828918457, 0, 0, 0.329690933227539062, 0.944088935852050781, 120, 255, 1, "", 49345),
(1310, 164763, 593, 0, 0, 1, 1, 11.21061420440673828, 2.581463098526000976, 6.096820831298828125, 4.773476600646972656, 0, 0, -0.68518257141113281, 0.728371381759643554, 120, 255, 1, "", 48632),
(1311, 164764, 593, 0, 0, 1, 1, 11.28876590728759765, 1.464622020721435546, 6.096820831298828125, 1.553344011306762695, 0, 0, 0.700909614562988281, 0.71325010061264038, 120, 255, 1, "", 48632),
(1312, 164765, 593, 0, 0, 1, 1, 5.51160287857055664, 10.92694664001464843, 6.099214076995849609, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, 120, 255, 1, "", 48632),
(1313, 164766, 593, 0, 0, 1, 1, 4.39427804946899414, 9.889936447143554687, 6.099214076995849609, 0.671952366828918457, 0, 0, 0.329690933227539062, 0.944088935852050781, 120, 255, 1, "", 48632),
(1314, 164767, 593, 0, 0, 1, 1, 39.2127532958984375, -2.40047001838684082, 6.098138809204101562, 2.679079532623291015, 0, 0, 0.973379135131835937, 0.229200854897499084, 120, 255, 1, "", 48632),
-- Chair
-- 594 Sister Mercy - Garvan's Reef (Boat, Neutral ("Sister Mercy"))
(1315, 186408, 594, 0, 0, 1, 1, 17.0715179443359375, -0.77082198858261108, 8.6925811767578125, 0.671952366828918457, 0, 0, 0.329690933227539062, 0.944088935852050781, 120, 255, 1, "", 51739),
(1316, 186409, 594, 0, 0, 1, 1, 18.51146888732910156, 0.749058008193969726, 8.6925811767578125, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, 120, 255, 1, "", 51739),
(1317, 186410, 594, 0, 0, 1, 1, 14.273040771484375, -0.45916301012039184, 8.725382804870605468, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, 120, 255, 1, "", 51739),
(1318, 186411, 594, 0, 0, 1, 1, 12.84190177917480468, -2.01827406883239746, 8.725382804870605468, 0.671952366828918457, 0, 0, 0.329690933227539062, 0.944088935852050781, 120, 255, 1, "", 51739),
(1319, 186412, 594, 0, 0, 1, 1, 11.21061420440673828, 3.044408082962036132, 8.725523948669433593, 4.773476600646972656, 0, 0, -0.68518257141113281, 0.728371381759643554, 120, 255, 1, "", 51739),
(1320, 186413, 594, 0, 0, 1, 1, 11.28876686096191406, 0.989736020565032958, 8.725523948669433593, 1.553344011306762695, 0, 0, 0.700909614562988281, 0.71325010061264038, 120, 255, 1, "", 51739),
(1321, 186414, 594, 0, 0, 1, 1, 5.768925189971923828, 11.23967456817626953, 8.727916717529296875, 3.892086982727050781, 0, 0, -0.93041706085205078, 0.366502493619918823, 120, 255, 1, "", 51739),
(1322, 186415, 594, 0, 0, 1, 1, 4.191449165344238281, 9.616560935974121093, 8.727916717529296875, 0.671952366828918457, 0, 0, 0.329690933227539062, 0.944088935852050781, 120, 255, 1, "", 51739),
(1323, 186416, 594, 0, 0, 1, 1, 39.2127532958984375, -2.40047001838684082, 8.726841926574707031, 2.679079532623291015, 0, 0, 0.973379135131835937, 0.229200854897499084, 120, 255, 1, "", 45942),
(1324, 186417, 594, 0, 0, 1, 1, 35.6175537109375, -2.70943593978881835, 1.750810027122497558, 2.52683424949645996, 0, 0, 0.953129768371582031, 0.302561759948730468, 120, 255, 1, "", 51739),
-- 623 The Skybreaker - Icecrown (Gunship, Alliance ("The Skybreaker"))
(1325, 193031, 623, 0, 0, 1, 1, 45.25848388671875, 2.574336051940917968, 9.179107666015625, 1.48352813720703125, 0, 0, 0.675589561462402343, 0.737277925014495849, 120, 255, 1, "", 51739),
(1326, 193032, 623, 0, 0, 1, 1, 47.61293411254882812, 3.14569401741027832, 9.179107666015625, 2.268925428390502929, 0, 0, 0.906307220458984375, 0.422619491815567016, 120, 255, 1, "", 51739),
(1327, 193033, 623, 0, 0, 1, 1, 43.37488174438476562, 6.605104923248291015, 9.179107666015625, 5.759587764739990234, 0, 0, -0.25881862640380859, 0.965925931930541992, 120, 255, 1, "", 51739),
(1328, 193034, 623, 0, 0, 1, 1, 45.37456893920898437, 8.219777107238769531, 9.179107666015625, 4.886921405792236328, 0, 0, -0.64278793334960937, 0.766044199466705322, 120, 255, 1, "", 51739),
(1329, 193035, 623, 0, 0, 1, 1, 47.77638626098632812, 7.090052127838134765, 9.179107666015625, 3.926995515823364257, 0, 0, -0.92387866973876953, 0.38268551230430603, 120, 255, 1, "", 51739),
(1330, 193036, 623, 0, 0, 1, 1, 48.41291427612304687, 5.049696922302246093, 9.179545402526855468, 2.879789113998413085, 0, 0, 0.991444587707519531, 0.130528271198272705, 120, 255, 1, "", 51739),
(1331, 193037, 623, 0, 0, 1, 1, 43.42211532592773437, 4.230630874633789062, 9.179107666015625, 0.610865473747253417, 0, 0, 0.300705909729003906, 0.953716933727264404, 120, 255, 1, "", 51739),
-- Anvil
-- 622 Orgrim's Hammer - Icecrown (Gunship, Horde ("Orgrim's Hammer"))
(1332, 191640, 622, 0, 0, 1, 1, 42.08454513549804687, 14.60722732543945312, 10.65548419952392578, 4.244587898254394531, -0.00322771072387695, 0.005247116088867187, -0.85172462463378906, 0.523953437805175781, 120, 255, 1, "", 46368);
+176
View File
@@ -0,0 +1,176 @@
-- DB update 2024_10_01_03 -> 2024_10_02_00
--
DELETE FROM `creature_template_model` WHERE `CreatureID` IN (21876, 22986, 23040, 23046, 23058, 23322, 23327, 23583, 23751, 23752, 23753, 23832, 23868, 23869, 23893, 24042, 24335, 24336, 24861, 24865, 24938, 25047, 25115, 25219, 25534, 26086, 26093, 26114, 26161, 26248, 26249, 26403, 26785, 26855, 26856, 26857, 27263, 27264, 27265, 27366, 27802, 28019, 28230, 28332, 28758, 29055, 29056, 29057, 29058, 29069, 29105, 29752, 30209, 30211, 30212, 31641, 32504, 33552, 33874, 34281, 34381, 34562, 36209, 36715, 37094, 37158, 37601, 37704, 37745, 37746, 37852, 38340, 38341, 38342, 38903, 38907, 39135, 39581, 39672, 40006, 40037, 40038, 40039, 40141, 40218, 40363);
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES
(21876, 0, 20570, 1, 0, 51831),
(21876, 1, 16925, 1, 1, 51831),
(22986, 0, 20570, 1, 0, 51831),
(22986, 1, 17188, 1, 1, 51831),
(23040, 0, 20570, 1, 0, 51831),
(23040, 1, 11686, 1, 1, 51831),
(23046, 0, 20570, 1, 0, 51831),
(23046, 1, 19595, 1, 1, 51831),
(23058, 0, 20570, 1, 0, 51831),
(23058, 1, 19595, 1, 1, 51831),
(23322, 0, 20570, 1, 0, 51831),
(23322, 1, 11686, 1, 1, 51831),
(23327, 0, 20570, 1, 0, 51831),
(23327, 1, 11686, 1, 1, 51831),
(23583, 0, 20570, 1, 0, 51831),
(23583, 1, 17188, 1, 1, 51831),
(23751, 0, 20570, 1, 0, 51831),
(23751, 1, 17188, 1, 1, 51831),
(23752, 0, 20570, 1, 0, 51831),
(23752, 1, 17188, 1, 1, 51831),
(23753, 0, 20570, 1, 0, 51831),
(23753, 1, 17188, 1, 1, 51831),
(23832, 0, 20570, 1, 0, 51831),
(23832, 1, 21888, 1, 1, 51831),
(23868, 0, 20570, 1, 0, 51831),
(23868, 1, 17188, 1, 1, 51831),
(23869, 0, 20570, 1, 0, 51831),
(23869, 1, 17188, 1, 1, 51831),
(23893, 0, 20570, 1, 0, 51831),
(23893, 1, 21888, 1, 1, 51831),
(24042, 0, 20570, 1, 0, 51831),
(24042, 1, 11686, 1, 1, 51831),
(24335, 0, 20570, 1, 0, 51831),
(24335, 1, 17188, 1, 1, 51831),
(24336, 0, 20570, 1, 0, 51831),
(24336, 1, 17200, 1, 1, 51831),
(24861, 0, 20570, 1, 0, 51831),
(24861, 1, 17188, 1, 1, 51831),
(24865, 0, 20570, 1, 0, 51831),
(24865, 1, 11686, 1, 1, 51831),
(24938, 0, 20570, 1, 0, 51831),
(24938, 1, 11686, 1, 1, 51831),
(25047, 0, 20570, 1, 0, 51831),
(25047, 1, 11686, 1, 1, 51831),
(25115, 0, 20570, 1, 0, 51831),
(25115, 1, 11686, 1, 1, 51831),
(25219, 0, 20570, 1, 0, 51831),
(25219, 1, 11686, 1, 1, 51831),
(25534, 0, 20570, 1, 0, 51831),
(25534, 1, 24826, 1, 1, 51831),
(26086, 0, 20570, 1, 0, 51831),
(26086, 1, 23258, 1, 1, 51831),
(26093, 0, 20570, 1, 0, 51831),
(26093, 1, 11686, 1, 1, 51831),
(26114, 0, 20570, 1, 0, 51831),
(26114, 1, 17612, 1, 100, 51831),
(26161, 0, 20570, 1, 0, 51831),
(26161, 1, 17612, 1, 100, 51831),
(26248, 0, 20570, 1, 0, 51831),
(26248, 1, 17612, 1, 100, 51831),
(26249, 0, 20570, 1, 0, 51831),
(26249, 1, 17612, 1, 100, 51831),
(26403, 0, 20570, 1, 0, 51831),
(26403, 1, 11686, 1, 1, 51831),
(26785, 0, 20570, 1, 0, 51831),
(26785, 1, 16946, 1, 1, 51831),
(26855, 0, 20570, 1, 0, 51831),
(26855, 1, 11686, 1, 1, 51831),
(26856, 0, 20570, 1, 0, 51831),
(26856, 1, 11686, 1, 1, 51831),
(26857, 0, 20570, 1, 0, 51831),
(26857, 1, 11686, 1, 1, 51831),
(27263, 0, 20570, 1, 0, 51831),
(27263, 1, 15880, 1, 100, 51831),
(27264, 0, 20570, 1, 0, 51831),
(27264, 1, 15880, 1, 100, 51831),
(27265, 0, 20570, 1, 0, 51831),
(27265, 1, 15880, 1, 100, 51831),
(27366, 0, 20570, 1, 0, 51831),
(27366, 1, 17612, 1, 100, 51831),
(27802, 0, 20570, 1, 0, 51831),
(27802, 1, 17200, 1, 1, 51831),
(28019, 0, 20570, 1, 0, 51831),
(28019, 1, 17612, 1, 100, 51831),
(28230, 0, 20570, 1, 0, 51831),
(28230, 1, 15294, 1, 1, 51831),
(28332, 0, 20570, 1, 0, 51831),
(28332, 1, 11686, 1, 1, 51831),
(28758, 0, 20570, 1, 0, 51831),
(28758, 1, 17612, 1, 100, 51831),
(29055, 0, 20570, 1, 0, 51831),
(29055, 1, 17612, 1, 100, 51831),
(29056, 0, 20570, 1, 0, 51831),
(29056, 1, 17612, 1, 100, 51831),
(29057, 0, 20570, 1, 0, 51831),
(29057, 1, 17612, 1, 100, 51831),
(29058, 0, 20570, 1, 0, 51831),
(29058, 1, 17612, 1, 100, 51831),
(29069, 0, 20570, 1, 0, 51831),
(29069, 1, 17612, 1, 100, 51831),
(29105, 0, 20570, 1, 0, 51831),
(29105, 1, 11686, 1, 1, 51831),
(29752, 0, 20570, 1, 0, 51831),
(29752, 1, 11686, 1, 1, 51831),
(30209, 0, 20570, 1, 0, 51831),
(30209, 1, 11686, 1, 1, 51831),
(30211, 0, 20570, 1, 0, 51831),
(30211, 1, 11686, 1, 1, 51831),
(30212, 0, 20570, 1, 0, 51831),
(30212, 1, 11686, 1, 1, 51831),
(31641, 0, 20570, 1, 0, 51831),
(31641, 1, 21072, 1, 1, 51831),
(32504, 0, 20570, 1, 0, 51831),
(32504, 1, 11686, 1, 1, 51831),
(33552, 0, 20570, 1, 0, 51831),
(33552, 1, 23767, 1, 1, 51831),
(33874, 0, 20570, 1, 0, 51831),
(33874, 1, 11686, 1, 1, 51831),
(34281, 0, 20570, 1, 0, 51831),
(34281, 1, 11686, 1, 1, 51831),
(34381, 0, 20570, 1, 0, 51831),
(34381, 1, 11686, 1, 1, 51831),
(34562, 0, 20570, 1, 0, 51831),
(34562, 1, 11686, 1, 1, 51831),
(36209, 0, 20570, 1, 0, 51831),
(36209, 1, 11686, 1, 1, 51831),
(36715, 0, 20570, 1, 0, 51831),
(36715, 1, 17612, 1, 100, 51831),
(37094, 0, 20570, 1, 0, 51831),
(37094, 1, 30822, 1, 1, 51831),
(37158, 0, 20570, 1, 0, 51831),
(37158, 1, 30547, 1, 1, 51831),
(37601, 0, 20570, 1, 0, 51831),
(37601, 1, 17612, 1, 100, 51831),
(37704, 0, 20570, 1, 0, 51831),
(37704, 1, 17612, 1, 100, 51831),
(37745, 0, 20570, 1, 0, 51831),
(37745, 1, 30547, 1, 1, 51831),
(37746, 0, 20570, 1, 0, 51831),
(37746, 1, 17612, 1, 100, 51831),
(37852, 0, 20570, 1, 0, 51831),
(37852, 1, 17612, 1, 100, 51831),
(38340, 0, 20570, 1, 0, 51831),
(38340, 1, 17612, 1, 100, 51831),
(38341, 0, 20570, 1, 0, 51831),
(38341, 1, 17612, 1, 100, 51831),
(38342, 0, 20570, 1, 0, 51831),
(38342, 1, 17612, 1, 100, 51831),
(38903, 0, 20570, 1, 0, 51831),
(38903, 1, 11686, 1, 1, 51831),
(38907, 0, 20570, 1, 0, 51831),
(38907, 1, 11686, 1, 1, 51831),
(39135, 0, 20570, 1, 0, 51831),
(39135, 1, 17612, 1, 100, 51831),
(39581, 0, 20570, 1, 0, 51831),
(39581, 1, 27823, 1, 1, 51831),
(39672, 0, 20570, 1, 0, 51831),
(39672, 1, 27823, 1, 1, 51831),
(40006, 0, 31687, 1, 1, 51831),
(40006, 1, 20570, 1, 0, 51831),
(40037, 0, 23257, 1, 1, 51831),
(40037, 1, 20570, 1, 0, 51831),
(40038, 0, 21072, 1, 1, 51831),
(40038, 1, 20570, 1, 0, 51831),
(40039, 0, 11686, 1, 1, 51831),
(40039, 1, 20570, 1, 0, 51831),
(40141, 0, 31687, 1, 1, 51831),
(40141, 1, 20570, 1, 0, 51831),
(40218, 0, 20570, 1, 0, 51831),
(40218, 1, 19595, 1, 1, 51831),
(40363, 0, 20570, 1, 0, 51831),
(40363, 1, 22769, 1, 1, 51831);
@@ -0,0 +1,5 @@
-- DB update 2024_10_02_00 -> 2024_10_02_01
--
DELETE FROM `smart_scripts` WHERE (`entryorguid` = 3672) AND (`source_type` = 0) AND (`id` IN (3));
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(3672, 0, 3, 0, 2, 0, 100, 1, 0, 50, 0, 0, 0, 0, 11, 8041, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Boahn - Between 0-50% Health - Cast \'Snake Form\'');
@@ -0,0 +1,11 @@
-- DB update 2024_10_02_01 -> 2024_10_03_00
UPDATE `waypoint_data` SET `move_type` = 0 WHERE `id` IN (
1480150, -- Aqueous Spawn
1480210, -- Aqueous Spawn
1480170, -- Aqueous Spawn
1480130, -- Aqueous Spawn
1480190, -- Aqueous Spawn
1483640, -- Bonechewer Behemoth
1483630, -- Bonechewer Behemoth
1483600 -- Bonechewer Behemoth
);
@@ -19,7 +19,6 @@
#define _AUTHCODES_H
#include "Define.h"
#include <array>
enum AuthResult
{
-1
View File
@@ -30,7 +30,6 @@
#include "DatabaseEnv.h"
#include "DatabaseLoader.h"
#include "DeadlineTimer.h"
#include "GitRevision.h"
#include "IPLocation.h"
#include "IoContext.h"
#include "Log.h"
@@ -23,7 +23,6 @@
#include "CryptoHash.h"
#include "CryptoRandom.h"
#include "DatabaseEnv.h"
#include "Errors.h"
#include "IPLocation.h"
#include "Log.h"
#include "RealmList.h"
@@ -28,7 +28,6 @@
#include "SRP6.h"
#include "Socket.h"
#include <boost/asio/ip/tcp.hpp>
#include <memory>
using boost::asio::ip::tcp;
@@ -20,7 +20,6 @@
#include "Define.h"
#include <future>
#include <mutex>
void process_message(struct soap* soap_message);
void ACSoapThread(const std::string& host, uint16 port);
@@ -18,11 +18,9 @@
#ifndef __RASESSION_H__
#define __RASESSION_H__
#include "Common.h"
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/streambuf.hpp>
#include <future>
#include <memory>
using boost::asio::ip::tcp;
@@ -16,7 +16,6 @@
*/
#include "AdhocStatement.h"
#include "Errors.h"
#include "MySQLConnection.h"
#include "QueryResult.h"
@@ -29,7 +29,6 @@
#include "Implementation/PlayerbotsDatabase.h"
#endif
#include "Field.h"
#include "PreparedStatement.h"
#include "QueryCallback.h"
#include "QueryResult.h"
@@ -19,7 +19,6 @@
#define DatabaseEnvFwd_h__
#include <future>
#include <memory>
struct QueryResultFieldMetadata;
class Field;
-1
View File
@@ -20,7 +20,6 @@
#include "Log.h"
#include "MySQLHacks.h"
#include "StringConvert.h"
#include "Types.h"
Field::Field()
{
-1
View File
@@ -18,7 +18,6 @@
#ifndef _FIELD_H
#define _FIELD_H
#include "DatabaseEnvFwd.h"
#include "Define.h"
#include "Duration.h"
#include <array>
@@ -20,7 +20,6 @@
#include "Log.h"
#include "MySQLHacks.h"
#include "MySQLPreparedStatement.h"
#include "MySQLWorkaround.h"
#include "PreparedStatement.h"
#include "QueryResult.h"
#include "StringConvert.h"
@@ -21,7 +21,6 @@
#include "DatabaseEnvFwd.h"
#include "Define.h"
#include <map>
#include <memory>
#include <mutex>
#include <string>
#include <vector>
@@ -19,7 +19,6 @@
#include "Errors.h"
#include "Log.h"
#include "MySQLConnection.h"
#include "MySQLPreparedStatement.h"
#include "MySQLWorkaround.h"
#include "QueryResult.h"
@@ -20,7 +20,6 @@
#include "Define.h"
#include "Duration.h"
#include "Optional.h"
#include "SQLOperation.h"
#include <future>
#include <tuple>
@@ -24,7 +24,6 @@
#include <future>
#include <list>
#include <queue>
#include <utility>
class AC_DATABASE_API QueryCallback
{
@@ -24,7 +24,6 @@
#include "StringFormat.h"
#include <functional>
#include <mutex>
#include <utility>
#include <vector>
/*! Transactions, high level class. */
@@ -20,7 +20,6 @@
#include "Config.h"
#include "DatabaseEnv.h"
#include "DatabaseLoader.h"
#include "GitRevision.h"
#include "Log.h"
#include "StartProcess.h"
#include "UpdateFetcher.h"
@@ -25,6 +25,8 @@
#include <fstream>
#include <sstream>
#include "QueryResult.h"
using namespace std::filesystem;
struct UpdateFetcher::DirectoryEntry
-1
View File
@@ -23,7 +23,6 @@
#include "GameObject.h"
#include "Object.h"
#include "QuestDef.h"
#include <list>
class Creature;
class GameObject;
+3
View File
@@ -60,6 +60,9 @@ void GuardAI::EnterEvadeMode(EvadeReason /*why*/)
void GuardAI::JustDied(Unit* killer)
{
if (!killer)
return;
if (Player* player = killer->GetCharmerOrOwnerPlayerOrPlayerItself())
me->SendZoneUnderAttackMessage(player);
}
-1
View File
@@ -17,7 +17,6 @@
#include "PassiveAI.h"
#include "Creature.h"
#include "TemporarySummon.h"
PassiveAI::PassiveAI(Creature* c) : CreatureAI(c) { me->SetReactState(REACT_PASSIVE); }
PossessedAI::PossessedAI(Creature* c) : CreatureAI(c) { me->SetReactState(REACT_PASSIVE); }
-1
View File
@@ -17,7 +17,6 @@
#include "ReactorAI.h"
#include "CreatureAIImpl.h"
#include "Errors.h"
int32 ReactorAI::Permissible(Creature const* creature)
{
-1
View File
@@ -19,7 +19,6 @@
#define ACORE_TOTEMAI_H
#include "CreatureAI.h"
#include "Timer.h"
class Creature;
class Totem;
-1
View File
@@ -19,7 +19,6 @@
#define ACORE_CREATUREAI_H
#include "AreaBoundary.h"
#include "Common.h"
#include "Creature.h"
#include "EventMap.h"
#include "TaskScheduler.h"
-3
View File
@@ -18,13 +18,10 @@
#ifndef CREATUREAIIMPL_H
#define CREATUREAIIMPL_H
#include "Common.h"
#include "CreatureAI.h"
#include "Define.h"
#include "SpellMgr.h"
#include "TemporarySummon.h"
#include <functional>
#include <type_traits>
template<typename First, typename Second, typename... Rest>
static inline First const& RAND(First const& first, Second const& second, Rest const& ... rest)
-1
View File
@@ -20,7 +20,6 @@
#include "FactoryHolder.h"
#include "GameObjectAI.h"
#include "ObjectRegistry.h"
typedef FactoryHolder<GameObjectAI, GameObject> GameObjectAICreator;
@@ -18,7 +18,6 @@
#ifndef ACORE_SMARTAI_H
#define ACORE_SMARTAI_H
#include "Common.h"
#include "Creature.h"
#include "CreatureAI.h"
#include "GameObjectAI.h"
@@ -22,8 +22,6 @@
#include "GameObject.h"
#include "ObjectAccessor.h"
#include "SharedDefines.h"
#include "Utilities/Util.h"
#include "WorldPacket.h"
#include "ZoneScript.h"
enum BattlefieldTypes
@@ -22,7 +22,6 @@
#include "Log.h"
#include "ObjectAccessor.h"
#include "World.h"
#include "WorldPacket.h"
class Group;
class BattlefieldWG;
@@ -19,6 +19,7 @@
#define _ARENA_SCORE_H
#include "BattlegroundScore.h"
#include "SharedDefines.h"
#include "StringFormat.h"
struct AC_GAME_API ArenaScore : public BattlegroundScore
@@ -21,7 +21,6 @@
#include "Map.h"
#include "QueryResult.h"
#include <list>
#include <map>
class WorldSession;
class WorldPacket;
@@ -20,10 +20,8 @@
#include "Battleground.h"
#include "BattlegroundQueue.h"
#include "Common.h"
#include "CreatureAIImpl.h"
#include "DBCEnums.h"
#include <functional>
#include <unordered_map>
typedef std::map<uint32, Battleground*> BattlegroundContainer;
@@ -20,7 +20,6 @@
#include "Errors.h"
#include "ObjectGuid.h"
#include "SharedDefines.h"
class WorldPacket;
@@ -21,7 +21,6 @@
#include "GameEventMgr.h"
#include "GameGraveyard.h"
#include "GameObject.h"
#include "Language.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "SpellAuras.h"
@@ -21,7 +21,6 @@
#include "Battleground.h"
#include "BattlegroundScore.h"
#include "EventMap.h"
#include "Language.h"
enum BG_EY_Events
{
@@ -16,12 +16,10 @@
*/
#include "BattlegroundRV.h"
#include "ArenaScore.h"
#include "Battleground.h"
#include "GameObject.h"
#include "Log.h"
#include "ObjectAccessor.h"
#include "Pet.h"
#include "Player.h"
#include "WorldPacket.h"
-3
View File
@@ -21,15 +21,12 @@
#include "Common.h"
#include "GridNotifiersImpl.h"
#include "Language.h"
#include "Log.h"
#include "ObjectMgr.h"
#include "Opcodes.h"
#include "Player.h"
#include "Realm.h"
#include "ScriptMgr.h"
#include "SpellMgr.h"
#include "Tokenize.h"
#include "UpdateMask.h"
#include "World.h"
#include "WorldPacket.h"
#include "WorldSession.h"
-1
View File
@@ -19,7 +19,6 @@
#define AZEROTHCORE_CHAT_H
#include "ChatCommand.h"
#include "Errors.h"
#include "Player.h"
#include "SharedDefines.h"
#include "WorldSession.h"
@@ -30,7 +30,6 @@
#include <cstddef>
#include <map>
#include <tuple>
#include <type_traits>
#include <utility>
#include <variant>
#include <vector>
@@ -17,7 +17,6 @@
#include "ChatCommandHelpers.h"
#include "Chat.h"
#include "ObjectMgr.h"
void Acore::Impl::ChatCommands::SendErrorMessageToHandler(ChatHandler* handler, std::string_view str)
{
@@ -24,7 +24,6 @@
#include <optional>
#include <string>
#include <string_view>
#include <type_traits>
#include <variant>
class ChatHandler;
@@ -25,14 +25,10 @@
#include "Util.h"
#include <boost/preprocessor/punctuation/comma_if.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>
#include <cmath>
#include <cstring>
#include <iostream>
#include <string>
#include <string_view>
#include <tuple>
#include <type_traits>
#include <utility>
#include <variant>
class ChatHandler;
-2
View File
@@ -23,8 +23,6 @@
#include <array>
#include <string>
#include <string_view>
#include <type_traits>
#include <utility>
struct AchievementEntry;
struct GlyphPropertiesEntry;
@@ -21,8 +21,6 @@
#include "ScriptMgr.h"
#include "SpellAuraEffects.h"
#include "Transport.h"
#include "UpdateMask.h"
#include "World.h"
DynamicObject::DynamicObject(bool isWorldObject) : WorldObject(isWorldObject), MovableMapObject(),
_aura(nullptr), _removedAura(nullptr), _caster(nullptr), _duration(0), _isViewpoint(false), _updateViewerVisibilityTimer(0)
@@ -18,7 +18,6 @@
#ifndef GAMEOBJECTDATA_H
#define GAMEOBJECTDATA_H
#include "Common.h"
#include "SharedDefines.h"
#include "WorldPacket.h"
#include <string>
@@ -26,12 +26,10 @@
#include "CharacterDatabaseCleaner.h"
#include "Chat.h"
#include "Common.h"
#include "ConditionMgr.h"
#include "Config.h"
#include "DatabaseEnv.h"
#include "DisableMgr.h"
#include "GameEventMgr.h"
#include "GameGraveyard.h"
#include "GameObjectAI.h"
#include "GameTime.h"
#include "GridNotifiers.h"
@@ -63,10 +61,8 @@
#include "StringConvert.h"
#include "Tokenize.h"
#include "Transport.h"
#include "UpdateData.h"
#include "UpdateFieldFlags.h"
#include "Util.h"
#include "Vehicle.h"
#include "World.h"
#include "WorldPacket.h"
+17 -7
View File
@@ -57,7 +57,6 @@
#include "SpellAuras.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "StringConvert.h"
#include "TargetedMovementGenerator.h"
#include "TemporarySummon.h"
#include "Tokenize.h"
@@ -5076,6 +5075,14 @@ void Unit::RemoveAurasDueToItemSpell(uint32 spellId, ObjectGuid castItemGuid)
else
++iter;
}
for (AuraMap::iterator iter = m_ownedAuras.begin(); iter != m_ownedAuras.end();)
{
if (iter->second->GetCastItemGUID() == castItemGuid)
RemoveOwnedAura(iter, AURA_REMOVE_BY_DEFAULT);
else
++iter;
}
}
void Unit::RemoveAurasByType(AuraType auraType, ObjectGuid casterGUID, Aura* except, bool negative, bool positive)
@@ -14279,14 +14286,14 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced)
{
if (IsCreature() && IsControlledByPlayer()) // not sure if good for pet
{
main_speed_mod = GetMaxPositiveAuraModifier(SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED);
stack_bonus = GetTotalAuraMultiplier(SPELL_AURA_MOD_VEHICLE_SPEED_ALWAYS);
main_speed_mod = GetMaxPositiveAuraModifier(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED);
stack_bonus = GetTotalAuraMultiplier(SPELL_AURA_MOD_FLIGHT_SPEED_NOT_STACKING);
// for some spells this mod is applied on vehicle owner
int32 owner_speed_mod = 0;
if (Unit* owner = GetCharmer())
owner_speed_mod = owner->GetMaxPositiveAuraModifier(SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED);
owner_speed_mod = owner->GetMaxPositiveAuraModifier(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED);
main_speed_mod = std::max(main_speed_mod, owner_speed_mod);
}
@@ -14294,11 +14301,14 @@ void Unit::UpdateSpeed(UnitMoveType mtype, bool forced)
{
main_speed_mod = GetMaxPositiveAuraModifier(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED);
stack_bonus = GetTotalAuraMultiplier(SPELL_AURA_MOD_MOUNTED_FLIGHT_SPEED_ALWAYS);
non_stack_bonus += GetMaxPositiveAuraModifier(SPELL_AURA_MOD_FLIGHT_SPEED_MOUNTED_NOT_STACKING) / 100.0f;
}
else // Use not mount (shapeshift for example) auras (should stack)
main_speed_mod = GetTotalAuraModifier(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED) + GetTotalAuraModifier(SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED);
non_stack_bonus += GetMaxPositiveAuraModifier(SPELL_AURA_MOD_FLIGHT_SPEED_NOT_STACK) / 100.0f;
{
main_speed_mod = GetMaxPositiveAuraModifier(SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED);
stack_bonus = GetTotalAuraModifier(SPELL_AURA_MOD_FLIGHT_SPEED_ALWAYS);
non_stack_bonus += GetMaxPositiveAuraModifier(SPELL_AURA_MOD_FLIGHT_SPEED_NOT_STACKING) / 100.0f;
}
// Update speed for vehicle if available
if (IsPlayer() && GetVehicle())
@@ -21,16 +21,13 @@
#include "DynamicObject.h"
#include "GameObject.h"
#include "GridNotifiers.h"
#include "Log.h"
#include "Map.h"
#include "MapMgr.h"
#include "ObjectDefines.h"
#include "ObjectMgr.h"
#include "Opcodes.h"
#include "Pet.h"
#include "Player.h"
#include "Transport.h"
#include "Vehicle.h"
template<class T>
void HashMapHolder<T>::Insert(T* o)
-4
View File
@@ -21,11 +21,7 @@
#include "Define.h"
#include "GridDefines.h"
#include "Object.h"
#include "UpdateData.h"
#include <mutex>
#include <set>
#include <shared_mutex>
#include <unordered_map>
class Creature;
class Corpse;
-2
View File
@@ -23,9 +23,7 @@
#include "Corpse.h"
#include "Creature.h"
#include "DatabaseEnv.h"
#include "DynamicObject.h"
#include "GameObject.h"
#include "GossipDef.h"
#include "ItemTemplate.h"
#include "Log.h"
#include "Mail.h"
-1
View File
@@ -19,7 +19,6 @@
#define ACORE_CELL_H
#include "GridDefines.h"
#include "TypeContainer.h"
#include "TypeContainerVisitor.h"
class Map;
-1
View File
@@ -21,7 +21,6 @@
#include "Cell.h"
#include "Map.h"
#include "Object.h"
#include <cmath>
inline Cell::Cell(CellCoord const& p)
{
@@ -18,7 +18,6 @@
#include "GridNotifiers.h"
#include "Map.h"
#include "ObjectAccessor.h"
#include "SpellMgr.h"
#include "Transport.h"
#include "UpdateData.h"
#include "WorldPacket.h"
@@ -22,10 +22,7 @@
#include "CreatureAI.h"
#include "GridNotifiers.h"
#include "Object.h"
#include "Opcodes.h"
#include "Player.h"
#include "SpellAuras.h"
#include "UpdateData.h"
#include "WorldPacket.h"
#include "WorldSession.h"
@@ -24,7 +24,6 @@
#include "GridNotifiers.h"
#include "ObjectMgr.h"
#include "Transport.h"
#include "Vehicle.h"
// for loading world object at grid loading (Corpses)
//TODO: to implement npc on transport, also need to load npcs at grid loading
-2
View File
@@ -21,8 +21,6 @@
#include "Cell.h"
#include "Define.h"
#include "GridDefines.h"
#include "GridLoader.h"
#include "TypeList.h"
class ObjectWorldLoader;
@@ -18,11 +18,9 @@
#ifndef ACORE_MOVEMENTGENERATOR_H
#define ACORE_MOVEMENTGENERATOR_H
#include "Common.h"
#include "Define.h"
#include "FactoryHolder.h"
#include "MotionMaster.h"
#include "ObjectRegistry.h"
class Unit;
@@ -18,10 +18,8 @@
#include "ConfusedMovementGenerator.h"
#include "Creature.h"
#include "MapMgr.h"
#include "MoveSpline.h"
#include "MoveSplineInit.h"
#include "Player.h"
#include "VMapFactory.h"
#ifdef MAP_BASED_RAND_GEN
#define rand_norm() unit.rand_norm()
@@ -18,8 +18,6 @@
#include "EscortMovementGenerator.h"
#include "Creature.h"
#include "CreatureAI.h"
#include "Errors.h"
#include "MoveSpline.h"
#include "MoveSplineInit.h"
#include "Player.h"
@@ -22,7 +22,6 @@
#include "MoveSplineInit.h"
#include "ObjectAccessor.h"
#include "Player.h"
#include "VMapFactory.h"
#define MIN_QUIET_DISTANCE 28.0f
#define MAX_QUIET_DISTANCE 43.0f
@@ -18,7 +18,6 @@
#include "PointMovementGenerator.h"
#include "Creature.h"
#include "CreatureAI.h"
#include "Errors.h"
#include "MoveSpline.h"
#include "MoveSplineInit.h"
#include "ObjectAccessor.h"
@@ -19,6 +19,7 @@
#define SCRIPT_OBJECT_PLAYER_SCRIPT_H_
#include "ScriptObject.h"
#include "SharedDefines.h"
#include <vector>
// TODO to remove
@@ -266,12 +266,12 @@ enum AuraType
SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_DAMAGE = 203,
SPELL_AURA_MOD_ATTACKER_RANGED_CRIT_DAMAGE = 204,
SPELL_AURA_MOD_SCHOOL_CRIT_DMG_TAKEN = 205,
SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED = 206,
SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED = 206,
SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED = 207,
SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED = 208,
SPELL_AURA_MOD_FLIGHT_SPEED_ALWAYS = 208,
SPELL_AURA_MOD_MOUNTED_FLIGHT_SPEED_ALWAYS = 209,
SPELL_AURA_MOD_VEHICLE_SPEED_ALWAYS = 210,
SPELL_AURA_MOD_FLIGHT_SPEED_NOT_STACK = 211,
SPELL_AURA_MOD_FLIGHT_SPEED_NOT_STACKING = 210,
SPELL_AURA_MOD_FLIGHT_SPEED_MOUNTED_NOT_STACKING = 211,
SPELL_AURA_MOD_RANGED_ATTACK_POWER_OF_STAT_PERCENT = 212,
SPELL_AURA_MOD_RAGE_FROM_DAMAGE_DEALT = 213,
SPELL_AURA_214 = 214,
@@ -267,11 +267,11 @@ pAuraEffectHandler AuraEffectHandler[TOTAL_AURAS] =
&AuraEffect::HandleNoImmediateEffect, //203 SPELL_AURA_MOD_ATTACKER_MELEE_CRIT_DAMAGE implemented in Unit::CalculateMeleeDamage and Unit::CalculateSpellDamage
&AuraEffect::HandleNoImmediateEffect, //204 SPELL_AURA_MOD_ATTACKER_RANGED_CRIT_DAMAGE implemented in Unit::CalculateMeleeDamage and Unit::CalculateSpellDamage
&AuraEffect::HandleNULL, //205 SPELL_AURA_MOD_SCHOOL_CRIT_DMG_TAKEN
&AuraEffect::HandleAuraModIncreaseFlightSpeed, //206 SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED
&AuraEffect::HandleAuraModIncreaseFlightSpeed, //206 SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED
&AuraEffect::HandleAuraModIncreaseFlightSpeed, //207 SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED
&AuraEffect::HandleAuraModIncreaseFlightSpeed, //208 SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED
&AuraEffect::HandleAuraModIncreaseFlightSpeed, //208 SPELL_AURA_MOD_FLIGHT_SPEED_ALWAYS
&AuraEffect::HandleAuraModIncreaseFlightSpeed, //209 SPELL_AURA_MOD_MOUNTED_FLIGHT_SPEED_ALWAYS
&AuraEffect::HandleAuraModIncreaseFlightSpeed, //210 SPELL_AURA_MOD_VEHICLE_SPEED_ALWAYS
&AuraEffect::HandleAuraModIncreaseFlightSpeed, //210 SPELL_AURA_MOD_FLIGHT_SPEED_NOT_STACKING
&AuraEffect::HandleAuraModIncreaseFlightSpeed, //211 SPELL_AURA_MOD_FLIGHT_SPEED_NOT_STACK
&AuraEffect::HandleAuraModRangedAttackPowerOfStatPercent, //212 SPELL_AURA_MOD_RANGED_ATTACK_POWER_OF_STAT_PERCENT
&AuraEffect::HandleNoImmediateEffect, //213 SPELL_AURA_MOD_RAGE_FROM_DAMAGE_DEALT implemented in Player::RewardRage
+3 -4
View File
@@ -46,10 +46,8 @@
#include "SpellMgr.h"
#include "SpellScript.h"
#include "TemporarySummon.h"
#include "Totem.h"
#include "Unit.h"
#include "UpdateData.h"
#include "UpdateMask.h"
#include "Util.h"
#include "VMapFactory.h"
#include "Vehicle.h"
@@ -3160,8 +3158,9 @@ SpellMissInfo Spell::DoSpellHitOnUnit(Unit* unit, uint32 effectMask, bool scaleA
if (m_spellAura)
{
// Prevent aura application if target is immuned
if (m_targets.GetUnitTarget() && m_targets.GetUnitTarget()->IsImmunedToDamageOrSchool(m_spellAura->GetSpellInfo()))
// Prevent aura application if target is banished and immuned
if (m_targets.GetUnitTarget() && m_targets.GetUnitTarget()->IsImmunedToDamageOrSchool(m_spellAura->GetSpellInfo())
&& m_targets.GetUnitTarget()->HasUnitState(UNIT_STATE_ISOLATED))
{
m_spellAura->Remove();
return SPELL_MISS_IMMUNE;
-1
View File
@@ -19,7 +19,6 @@
#define SPELLDEFINES_H
#include "Define.h"
#include "ObjectGuid.h"
#include <vector>
enum SpellInterruptFlags
-3
View File
@@ -16,7 +16,6 @@
*/
#include "Battleground.h"
#include "BattlegroundEY.h"
#include "BattlegroundIC.h"
#include "BattlegroundMgr.h"
#include "BattlegroundSA.h"
@@ -57,8 +56,6 @@
#include "Totem.h"
#include "Transport.h"
#include "Unit.h"
#include "UpdateData.h"
#include "UpdateMask.h"
#include "Util.h"
#include "Vehicle.h"
#include "World.h"
-1
View File
@@ -30,7 +30,6 @@
#include "SharedDefines.h"
#include "Spell.h"
#include "SpellAuraDefines.h"
#include "SpellAuras.h"
#include "SpellInfo.h"
#include "World.h"
-5
View File
@@ -22,12 +22,7 @@
#include "Common.h"
#include "Duration.h"
#include "ObjectGuid.h"
#include "QueryResult.h"
#include "SharedDefines.h"
#include <atomic>
#include <list>
#include <map>
#include <set>
#include <unordered_map>
class WorldPacket;
-1
View File
@@ -86,7 +86,6 @@
#include "Util.h"
#include "VMapFactory.h"
#include "VMapMgr2.h"
#include "Vehicle.h"
#include "Warden.h"
#include "WardenCheckMgr.h"
#include "WaypointMovementGenerator.h"
-1
View File
@@ -31,7 +31,6 @@
#include <atomic>
#include <list>
#include <map>
#include <set>
#include <unordered_map>
class Object;
@@ -316,6 +316,7 @@ struct boss_illidan_stormrage : public BossAI
DoStopAttack();
me->SetControlled(true, UNIT_STATE_ROOT);
me->SetCombatMovement(false);
DoResetThreatList();
DoCastSelf(SPELL_DEMON_TRANSFORM_1, true);
me->m_Events.AddEventAtOffset([&] {
@@ -734,7 +735,10 @@ struct npc_akama_illidan : public ScriptedAI
scheduler.CancelAll();
me->m_Events.KillAllEvents(true);
me->SetReactState(REACT_AGGRESSIVE);
me->SetNpcFlag(UNIT_NPC_FLAG_GOSSIP);
if (instance->GetBossState(DATA_ILLIDAN_STORMRAGE) == DONE)
me->RemoveNpcFlag(UNIT_NPC_FLAG_GOSSIP);
else
me->SetNpcFlag(UNIT_NPC_FLAG_GOSSIP);
me->setActive(false);
summons.DespawnAll();
DoCastSelf(SPELL_REDUCED_THREAT, true);
@@ -27,67 +27,67 @@
enum Says
{
SAY_BROKEN_FREE_0 = 0,
SAY_BROKEN_FREE_1 = 1,
SAY_BROKEN_FREE_2 = 2,
SAY_LOW_HEALTH = 3,
SAY_DEATH = 4,
SAY_BROKEN_FREE_0 = 0,
SAY_BROKEN_FREE_1 = 1,
SAY_BROKEN_FREE_2 = 2,
SAY_LOW_HEALTH = 3,
SAY_DEATH = 4,
SAY_BROKEN_S1 = 0,
SAY_BROKEN_S2 = 1
SAY_BROKEN_S1 = 0,
SAY_BROKEN_S2 = 1
};
enum Spells
{
// Akama
SPELL_STEALTH = 34189,
SPELL_DESTRUCTIVE_POISON = 40874,
SPELL_CHAIN_LIGHTNING = 39945,
SPELL_AKAMA_SOUL_CHANNEL = 40447,
SPELL_FIXATE = 40607,
SPELL_AKAMA_SOUL_RETRIEVE = 40902, // epilogue
SPELL_AKAMA_SOUL_EXPEL_CHANNEL = 40927, // epilogue
SPELL_STEALTH = 34189,
SPELL_DESTRUCTIVE_POISON = 40874,
SPELL_CHAIN_LIGHTNING = 39945,
SPELL_AKAMA_SOUL_CHANNEL = 40447,
SPELL_FIXATE = 40607,
SPELL_AKAMA_SOUL_RETRIEVE = 40902, // epilogue
SPELL_AKAMA_SOUL_EXPEL_CHANNEL = 40927, // epilogue
// Shade & Channelers
SPELL_SHADE_SOUL_CHANNEL = 40401,
SPELL_THREAT = 41602,
SPELL_SHADE_OF_AKAMA_TRIGGER = 40955,
SPELL_SHADE_SOUL_CHANNEL = 40401,
SPELL_THREAT = 41602,
SPELL_SHADE_OF_AKAMA_TRIGGER = 40955,
// Summons
SPELL_ASHTONGUE_WAVE_A = 42073, // unused
SPELL_ASHTONGUE_WAVE_B = 42035,
SPELL_SUMMON_ASHTONGUE_SORCERER = 40476,
SPELL_SUMMON_ASHTONGUE_DEFENDER = 40474
SPELL_ASHTONGUE_WAVE_A = 42073, // unused
SPELL_ASHTONGUE_WAVE_B = 42035,
SPELL_SUMMON_ASHTONGUE_SORCERER = 40476,
SPELL_SUMMON_ASHTONGUE_DEFENDER = 40474
};
enum Creatures
{
NPC_ASHTONGUE_SORCERER = 23215,
NPC_ASHTONGUE_DEFENDER = 23216,
NPC_ASHTONGUE_ELEMENTAL = 23523,
NPC_ASHTONGUE_ROGUE = 23318,
NPC_ASHTONGUE_SPIRITBIND = 23524,
NPC_ASHTONGUE_BROKEN = 23319
NPC_ASHTONGUE_SORCERER = 23215,
NPC_ASHTONGUE_DEFENDER = 23216,
NPC_ASHTONGUE_ELEMENTAL = 23523,
NPC_ASHTONGUE_ROGUE = 23318,
NPC_ASHTONGUE_SPIRITBIND = 23524,
NPC_ASHTONGUE_BROKEN = 23319
};
enum Misc
{
SUMMON_GROUP_BROKENS = 1,
SUMMON_GROUP_BROKENS = 1,
POINT_ENGAGE = 0,
POINT_OUTRO = 1,
POINT_ENGAGE = 0,
POINT_OUTRO = 1,
ACTION_GENERATOR_START = 1,
ACTION_GENERATOR_STOP = 2,
ACTION_GENERATOR_DESPAWN_ALL = 3,
ACTION_GENERATOR_START = 1,
ACTION_GENERATOR_STOP = 2,
ACTION_GENERATOR_DESPAWN_ALL = 3,
ACTION_GENERATOR_DESPAWN_NON_DEFENDERS = 4,
COUNTER_SPAWNS_MAX = 20, // Max number of spawns for each generator, number chosen at random
COUNTER_SPAWNS_MAX = 20, // Max number of spawns for each generator, number chosen at random
ACTION_AKAMA_START_OUTRO = 1,
ACTION_AKAMA_START_OUTRO = 1,
FACTION_DEFAULT = 1820,
FACTION_ENGAGE = 1868,
FACTION_DEFENDER = 1847
FACTION_DEFAULT = 1820,
FACTION_MONSTER_SPAR = 1847
};
Position AkamaEngage = { 517.4877f, 400.79926f, 112.77704f };
@@ -222,6 +222,7 @@ struct npc_akama_shade : public ScriptedAI
_sayLowHealth = false;
_died = false;
scheduler.CancelAll();
_generators.clear();
}
void MovementInform(uint32 type, uint32 point) override
@@ -232,7 +233,7 @@ struct npc_akama_shade : public ScriptedAI
{
case POINT_ENGAGE:
me->SetHomePosition(me->GetPosition());
me->SetFaction(FACTION_ENGAGE);
me->SetFaction(FACTION_MONSTER_SPAR_BUDDY);
DoCastSelf(SPELL_AKAMA_SOUL_CHANNEL, true);
break;
case POINT_OUTRO:
@@ -279,6 +280,10 @@ struct npc_akama_shade : public ScriptedAI
else if (damage >= me->GetHealth() && !_died)
{
_died = true;
me->GetCreatureListWithEntryInGrid(_generators, NPC_CREATURE_GENERATOR_AKAMA, 100.0f);
for (Creature* generator : _generators)
generator->AI()->DoAction(ACTION_GENERATOR_DESPAWN_ALL);
damage = me->GetHealth() - 1;
Talk(SAY_DEATH);
if (Creature* shade = instance->GetCreature(DATA_SHADE_OF_AKAMA))
@@ -342,6 +347,7 @@ struct npc_akama_shade : public ScriptedAI
private:
bool _sayLowHealth;
bool _died;
std::list<Creature *> _generators;
};
struct npc_creature_generator_akama : public ScriptedAI
@@ -355,7 +361,6 @@ struct npc_creature_generator_akama : public ScriptedAI
void Reset() override
{
summons.DespawnAll();
scheduler.CancelAll();
}
@@ -363,6 +368,7 @@ struct npc_creature_generator_akama : public ScriptedAI
{
spawnCounter++;
ScriptedAI::JustSummoned(summon);
summons.Summon(summon);
switch (summon->GetEntry())
{
@@ -374,13 +380,10 @@ struct npc_creature_generator_akama : public ScriptedAI
summon->GetMotionMaster()->MovePoint(POINT_ENGAGE, x, y, z);
}
break;
case NPC_ASHTONGUE_DEFENDER:
summon->SetFaction(FACTION_DEFENDER);
if (Creature* akama = instance->GetCreature(DATA_AKAMA_SHADE))
summon->AI()->AttackStart(akama);
break;
default:
summon->SetInCombatWithZone();
if (Creature* akama = instance->GetCreature(DATA_AKAMA_SHADE))
summon->AI()->AttackStart(akama);
break;
}
}
@@ -434,6 +437,14 @@ struct npc_creature_generator_akama : public ScriptedAI
summons.DespawnAll();
scheduler.CancelAll();
break;
case ACTION_GENERATOR_DESPAWN_NON_DEFENDERS:
summons.DoForAllSummons([&](WorldObject* summon)
{
if (Creature* c = summon->ToCreature())
if (c->GetEntry() != NPC_ASHTONGUE_DEFENDER && c->GetEntry() != NPC_ASHTONGUE_SORCERER)
c->DespawnOrUnsummon();
});
break;
}
}
+1 -1
View File
@@ -1017,7 +1017,7 @@ class spell_dru_swift_flight_passive : public AuraScript
void Register() override
{
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_dru_swift_flight_passive::CalculateAmount, EFFECT_1, SPELL_AURA_MOD_INCREASE_VEHICLE_FLIGHT_SPEED);
DoEffectCalcAmount += AuraEffectCalcAmountFn(spell_dru_swift_flight_passive::CalculateAmount, EFFECT_1, SPELL_AURA_MOD_INCREASE_FLIGHT_SPEED);
}
};
@@ -18,6 +18,7 @@
#include "DBCDatabaseLoader.h"
#include "DatabaseEnv.h"
#include "Errors.h"
#include "QueryResult.h"
#include "StringFormat.h"
DBCDatabaseLoader::DBCDatabaseLoader(char const* tableName, char const* dbcFormatString, std::vector<char*>& stringPool)
@@ -19,7 +19,6 @@
#define DBCDatabaseLoader_h__
#include "DBCFileLoader.h"
#include <string>
#include <vector>
struct DBCDatabaseLoader
@@ -19,7 +19,6 @@
#define DBCStorageIterator_h__
#include "Define.h"
#include <iterator>
template <class T>
class DBCStorageIterator
@@ -20,7 +20,6 @@
#include "DBCEnums.h"
#include "Define.h"
#include "SharedDefines.h"
#include "Util.h"
#include <array>
#include <map>
-1
View File
@@ -16,7 +16,6 @@
*/
#include "Realm.h"
#include "IpAddress.h"
#include "IpNetwork.h"
#include <boost/asio/ip/tcp.hpp>
-1
View File
@@ -22,7 +22,6 @@
#include "Realm.h"
#include <array>
#include <map>
#include <unordered_set>
#include <vector>
struct RealmBuildInfo
+1
View File
@@ -23,6 +23,7 @@
#include "DatabaseEnv.h"
#include "Errors.h"
#include "Log.h"
#include "QueryResult.h"
#include "SharedDefines.h"
#define SECRET_FLAG_FOR(key, val, server) server ## _ ## key = (val ## ull << (16*SERVER_PROCESS_ ## server))
-1
View File
@@ -19,7 +19,6 @@
#define __ACORE_SECRETMGR_H__
#include "BigNumber.h"
#include "Common.h"
#include "Log.h"
#include "Optional.h"
#include <array>