Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
b4efb11
Allow disabling effect execution completely in spell script.
ratkosrb Apr 7, 2025
d8034eb
Add more spell scripts.
ratkosrb Apr 7, 2025
9bdbd33
Refactor Object::MovePositionToFirstCollision (#3000)
Gamemechanicwow Apr 7, 2025
d598919
Implement SPELL_FAILED_ALREADY_BEING_TAMED.
ratkosrb Apr 7, 2025
30e3353
Implement SPELL_FAILED_EQUIPPED_ITEM_CLASS_MAINHAND and SPELL_FAILED_…
CHERO Apr 7, 2025
227d3e5
Scripts for 2 other spells.
ratkosrb Apr 7, 2025
9b25344
Fix build.
ratkosrb Apr 7, 2025
ae25c33
Fix build.
ratkosrb Apr 7, 2025
52be095
Add more spell scripts.
ratkosrb Apr 8, 2025
f356ad5
Forgot to assign a script.
ratkosrb Apr 8, 2025
e893ab8
Adding more spell scripts.
ratkosrb Apr 8, 2025
b959048
Fix build.
ratkosrb Apr 8, 2025
62e3921
Remove Stormstrike hack.
ratkosrb Apr 8, 2025
f594f40
Fix memory leak in send mail handler.
ratkosrb Apr 9, 2025
a441be4
Make sure bots draw their weapons.
ratkosrb Apr 10, 2025
b0b0521
Add waypoints for Dalaran Wizard.
ratkosrb Apr 11, 2025
f327c98
Implement evade on evade flag and correctly link adds for Faerlina (#…
FlagFlayer Apr 11, 2025
f4a971d
Misc code fixes.
CHERO Apr 12, 2025
fdb5887
Fix potential memory leak when adding partybots (#3006)
Gamemechanicwow Apr 12, 2025
7f256a6
Fixes for quest Cluck! (#3008)
Gamemechanicwow Apr 13, 2025
2f1c626
Prevent crash in MoveMap.cpp (#3007)
Wall-core Apr 13, 2025
d8c5284
Wandering Forest Walker should be elite before patch 1.8.
ratkosrb Apr 13, 2025
d7ac872
High Priest Rohan was not part of the Ironforge faction before 1.4.
ratkosrb Apr 13, 2025
4591fce
Realmd: Fix masking of login string if password is empty (#3016)
Gamemechanicwow Apr 19, 2025
8bfd1f5
Fix potential g3d assert with debug los check (#3017)
Gamemechanicwow Apr 19, 2025
f6fd0f3
Fix a typo.
ratkosrb Apr 20, 2025
596a13c
Use actual realm ID instead of hardcoded 0x2C in `LoadRealmlistAndWri…
Apr 20, 2025
279b8e6
Delete some TBC items wrongly retained in the database. (#3018)
Gamemechanicwow Apr 20, 2025
2dae0ef
Avoid copying the creature list in grid object updates.
ratkosrb Apr 21, 2025
8f29214
Fix Eye of Kilrogg crash.
ratkosrb Apr 27, 2025
a7a48b4
Implement character flags.
ratkosrb Apr 28, 2025
c53391e
Fixes for last commit.
ratkosrb Apr 28, 2025
42df226
Rename some unit flags.
ratkosrb Apr 28, 2025
354f3f5
Fix character creation.
ratkosrb Apr 28, 2025
296fbe0
Cancel immediately channeled spells that are about to fail due to no …
CHERO Apr 28, 2025
9789ec6
Self cast spells shouldn't miss.
CHERO Apr 28, 2025
eb4351f
Rework ignore caster and target restrictions attribute.
ratkosrb Apr 29, 2025
f1857ed
Remove obsolete check.
ratkosrb Apr 29, 2025
07c43c5
Cleanup CalculateForDebuffLimit (#3020)
Gamemechanicwow Apr 29, 2025
57c09af
Fix creatures being immune to spells that bypass immunities.
ratkosrb Apr 29, 2025
c45d1aa
Add Missing Copper Veins (#3022)
NickTyrer May 5, 2025
9f5283e
Add Missing Tin / Silver Veins (credit cmangos) (#3023)
NickTyrer May 5, 2025
f584b80
Add Missing Silver / Gold / Iron Veins (credit cmangos) (#3025)
NickTyrer May 5, 2025
d4f3834
Add Missing Gold / Mithril / Truesilver Veins (credit cmangos) (#3026)
NickTyrer May 5, 2025
3b03a2e
Add Missing Thorium / Truesilver Veins (credit cmangos) (#3027)
NickTyrer May 5, 2025
f01cfd8
Implement Beastmaster mode.
ratkosrb May 6, 2025
883a35d
Name some world enables flags.
ratkosrb May 6, 2025
7fd712a
Fix Dismiss Pet not decreasing happiness.
ratkosrb May 6, 2025
a6a074e
Add Vector3::up() and ::down() constants (#3021)
Gamemechanicwow May 9, 2025
af856a5
Reagent vendors in Feathermoon Stronghold and Camp Mojache were added…
Gamemechanicwow May 9, 2025
3b4232c
Steeljaw Snappers were added in 1.3.
ratkosrb May 9, 2025
0498b88
Brother Sarno's greeting script should be assigned to the areatrigger.
ratkosrb May 9, 2025
249bf76
Remove legacy mods.conf references (#3030)
Gamemechanicwow May 11, 2025
8f8f09d
Separate chase and follow movement.
ratkosrb May 12, 2025
7da3254
Try to fix linux build.
ratkosrb May 12, 2025
a0fa0ad
Try to fix build again.
ratkosrb May 12, 2025
b661ec6
Improve chase movement against units moved by server.
ratkosrb May 12, 2025
b9342d4
Don't check damage origin for boss loot.
ratkosrb May 13, 2025
775bda4
Misc helpers for debugging.
ratkosrb May 13, 2025
a7d022a
Reduce usage of ChatHandler.
ratkosrb May 13, 2025
d6ca8e1
Cleanup more includes.
ratkosrb May 13, 2025
2917fcf
More include cleanup.
ratkosrb May 13, 2025
b94d61d
Correct attack speeds for some mobs.
ratkosrb May 13, 2025
6f393e0
Fix a crash.
ratkosrb May 13, 2025
067f450
Delete custom creature Vam.
ratkosrb May 16, 2025
79418e5
Fix not being able to move after login sometimes.
ratkosrb May 16, 2025
1245412
Reduce movement extrapolation.
ratkosrb May 16, 2025
47c79c8
Possible fix to XP per kill rounding issue (#3032)
cpevors May 17, 2025
98d3ccc
Add some more spell scripts.
ratkosrb May 18, 2025
bfce78c
Lock movespline mutex during extrapolation.
ratkosrb May 19, 2025
1b62245
Fix Goblin Mortar and Big Bronze Bomb.
ratkosrb May 19, 2025
b7e9d96
Add spell script for Create Healthstone.
ratkosrb May 20, 2025
c989439
Add spell scripts for some gm spells.
ratkosrb May 20, 2025
a2d8009
Misc. DB fixes (#2953)
FlagFlayer May 21, 2025
b9f0a0e
Move creature min max level check to ObjectMgr (#3015)
Gamemechanicwow May 21, 2025
164269b
Fix wrong type and data for Sapphiron's Ice Block.
ratkosrb May 21, 2025
83efd26
Make gameobject_template table reloadable.
ratkosrb May 21, 2025
df189d7
Correct faction for all gameobjects.
ratkosrb May 22, 2025
92dd428
Remove useless query when loading auctions.
CHERO May 23, 2025
dd89cf3
Don't teleport player to homebind on logout inside invalid instance.
ratkosrb May 23, 2025
4e15037
Disarming a hunter trap should flag you for PvP.
ratkosrb May 23, 2025
a102c96
Slim's Friend should be immune to Mind Control.
ratkosrb May 23, 2025
e5070fb
Add spell script for using bg banners.
ratkosrb May 23, 2025
a4ae552
Add missing loot to Jade rare mob (#3034)
Bennylavaa May 25, 2025
428ca0a
Define stat64 for BSD.
ratkosrb May 25, 2025
6ac635b
Removes unused variables in G3D:Ray (#3040)
Gamemechanicwow May 26, 2025
7cd451d
Use Vector3 constants (#3039)
Gamemechanicwow May 26, 2025
6be7a59
Remove Geometry::ClampOrientation (#3038)
Gamemechanicwow May 26, 2025
e7e74f6
Rewrite logic in HasInArc (#3037)
Gamemechanicwow May 26, 2025
6f5390f
Optimize CalculatePassengerOffset (#3035)
Gamemechanicwow May 26, 2025
2c6a1fe
Move overrides for spells that can trigger weapon procs to db.
ratkosrb May 26, 2025
91f6a78
Fix a comment.
ratkosrb May 26, 2025
cbdc84c
Don't reveal enemy team factions to players.
ratkosrb May 26, 2025
ded23a0
Use radians instead of degrees (#3048)
Gamemechanicwow May 28, 2025
673365f
Fix Ignite for old client versions.
ratkosrb May 29, 2025
776130c
Avoid resetting iterator when saving quest status. (#3050)
Gamemechanicwow May 29, 2025
3060114
Use vector instead of list for procs list.
CHERO May 29, 2025
1656262
Add command to list visible guids.
ratkosrb May 30, 2025
a2de65f
Correct transport periods for 1.12.
ratkosrb May 30, 2025
64eb07f
Correct transport periods for older clients.
ratkosrb May 30, 2025
9e233d9
Correct period for Naxxramas as well.
ratkosrb May 30, 2025
271373a
Fix being able to train some warrior spell ranks without required tal…
ratkosrb May 30, 2025
9408919
Instances had no level requirements before patch 1.4.1.
ratkosrb May 30, 2025
5afcc27
Correct respawn time of Mok'rash.
ratkosrb May 30, 2025
39056aa
Clean up OPvPCapturePoint::SetCapturePointData (#3053)
Gamemechanicwow May 31, 2025
8820dd7
Remove no longer needed hacks for Blood Siphon.
ratkosrb Jun 1, 2025
38bfb83
Check if channeled spell is ignoring restrictions.
ratkosrb Jun 1, 2025
88144ef
Refactor code for updating battleground queues (#3057)
schell244 Jun 8, 2025
fbb6561
Fix startup errors on low patches.
ratkosrb Jun 8, 2025
7b5c870
Add missing gossip options to restore Mage talismans to Al'tabim.
ratkosrb Jun 8, 2025
e2314a5
Fix chain heal ordering (#3060)
maloch11 Jun 8, 2025
8da9c3f
Fix std::string being used as variadic argument.
ratkosrb Jun 10, 2025
8022eb5
Merge branch 'native' into dev_copy2
ratkosrb Jun 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions contrib/mmap/src/TerrainBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,7 @@ namespace MMAP

/// Check every map vertice
// x, y * -1
Vector3 up(0, 0, 1);


for (vector<GroupModel>::iterator it = groupModels.begin(); it != groupModels.end(); ++it)
for (int t = 0; t < mapVertsCount / 3; ++t)
{
Expand All @@ -764,7 +763,7 @@ namespace MMAP

float outDist = -1.0f;
float inDist = -1.0f;
if (it->IsUnderObject(v, up, isM2, &outDist, &inDist)) // inDist < outDist
if (it->IsUnderObject(v, Vector3::up(), isM2, &outDist, &inDist)) // inDist < outDist
{
//if there are less than 5.0y between terrain and model then mark the terrain as unwalkable
if (inDist < 5.0f)
Expand Down
16 changes: 0 additions & 16 deletions dep/include/g3dlite/G3D/Ray.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,6 @@ class Ray {
/** 1.0 / direction */
Vector3 m_invDirection;


/** The following are for the "ray slope" optimization from
"Fast Ray / Axis-Aligned Bounding Box Overlap Tests using Ray Slopes"
by Martin Eisemann, Thorsten Grosch, Stefan Müller and Marcus Magnor
Computer Graphics Lab, TU Braunschweig, Germany and
University of Koblenz-Landau, Germany */
enum Classification {MMM, MMP, MPM, MPP, PMM, PMP, PPM, PPP, POO, MOO, OPO, OMO, OOP, OOM, OMM, OMP, OPM, OPP, MOM, MOP, POM, POP, MMO, MPO, PMO, PPO};

Classification classification;

/** ray slope */
float ibyj, jbyi, kbyj, jbyk, ibyk, kbyi;

/** Precomputed components */
float c_xy, c_xz, c_yx, c_yz, c_zx, c_zy;

public:
/** \param direction Assumed to have unit length */
void set(const Point3& origin, const Vector3& direction);
Expand Down
14 changes: 8 additions & 6 deletions dep/include/g3dlite/G3D/Vector3.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ class Vector3 {
*/
inline Vector3 directionOrZero() const {
float mag = magnitude();
if (mag < 0.0000001f) {
if (mag < 0.0000001f)
return Vector3::zero();
} else if (mag < 1.00001f && mag > 0.99999f) {
if (mag < 1.00001f && mag > 0.99999f)
return *this;
} else {
return *this * (1.0f / mag);
}

return *this * (1.0f / mag);

}

/**
Expand Down Expand Up @@ -424,6 +424,8 @@ class Vector3 {
static const Vector3& unitZ();
static const Vector3& inf();
static const Vector3& nan();
static const Vector3& up();
static const Vector3& down();

/** Smallest (most negative) representable vector */
static const Vector3& minFinite();
Expand Down Expand Up @@ -597,7 +599,7 @@ std::ostream& operator<<(std::ostream& os, const Vector3&);


void serialize(const Vector3::Axis& a, class BinaryOutput& bo);
void deserialize(Vector3::Axis& a, class BinaryInput& bo);
void deserialize(Vector3::Axis& a, class BinaryInput& bi);


//----------------------------------------------------------------------------
Expand Down
99 changes: 0 additions & 99 deletions dep/src/g3dlite/Ray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,105 +21,6 @@ void Ray::set(const Vector3& origin, const Vector3& direction) {
debugAssert(direction.isUnit());

m_invDirection = Vector3::one() / direction;

// ray slope
ibyj = m_direction.x * m_invDirection.y;
jbyi = m_direction.y * m_invDirection.x;
jbyk = m_direction.y * m_invDirection.z;
kbyj = m_direction.z * m_invDirection.y;
ibyk = m_direction.x * m_invDirection.z;
kbyi = m_direction.z * m_invDirection.x;

// precomputed terms
c_xy = m_origin.y - jbyi * m_origin.x;
c_xz = m_origin.z - kbyi * m_origin.x;
c_yx = m_origin.x - ibyj * m_origin.y;
c_yz = m_origin.z - kbyj * m_origin.y;
c_zx = m_origin.x - ibyk * m_origin.z;
c_zy = m_origin.y - jbyk * m_origin.z;

//ray slope classification
if (m_direction.x < 0) {
if (m_direction.y < 0) {
if (m_direction.z < 0) {
classification = MMM;
} else if (m_direction.z > 0) {
classification = MMP;
} else { //(m_direction.z >= 0)
classification = MMO;
}
} else { //(m_direction.y >= 0)
if (m_direction.z < 0) {
if (m_direction.y == 0) {
classification = MOM;
} else {
classification = MPM;
}
} else { //(m_direction.z >= 0)
if ((m_direction.y == 0) && (m_direction.z == 0)) {
classification = MOO;
} else if (m_direction.z == 0) {
classification = MPO;
} else if (m_direction.y == 0) {
classification = MOP;
} else {
classification = MPP;
}
}
}
} else { //(m_direction.x >= 0)
if (m_direction.y < 0) {
if (m_direction.z < 0) {
if (m_direction.x == 0) {
classification = OMM;
} else {
classification = PMM;
}
} else { //(m_direction.z >= 0)
if ((m_direction.x == 0) && (m_direction.z == 0)) {
classification = OMO;
} else if (m_direction.z == 0) {
classification = PMO;
} else if (m_direction.x == 0) {
classification = OMP;
} else {
classification = PMP;
}
}
} else { //(m_direction.y >= 0)
if (m_direction.z < 0) {
if ((m_direction.x == 0) && (m_direction.y == 0)) {
classification = OOM;
} else if (m_direction.x == 0) {
classification = OPM;
} else if (m_direction.y == 0) {
classification = POM;
} else {
classification = PPM;
}
} else { //(m_direction.z > 0)
if (m_direction.x == 0) {
if (m_direction.y == 0) {
classification = OOP;
} else if (m_direction.z == 0) {
classification = OPO;
} else {
classification = OPP;
}
} else {
if ((m_direction.y == 0) && (m_direction.z == 0)) {
classification = POO;
} else if (m_direction.y == 0) {
classification = POP;
} else if (m_direction.z == 0) {
classification = PPO;
} else {
classification = PPP;
}
}
}
}
}
}


Expand Down
22 changes: 13 additions & 9 deletions dep/src/g3dlite/Vector3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Any Vector3::toAny(const std::string& name) const {
return any;
}

Vector3::Vector3(const class Color3& v) : x(v.r), y(v.g), z(v.b) {}
Vector3::Vector3(const class Color3& c) : x(c.r), y(c.g), z(c.b) {}

Vector3::Vector3(const class Vector3int32& v) : x((float)v.x), y((float)v.y), z((float)v.z) {}

Expand All @@ -116,11 +116,13 @@ Vector3& Vector3::ignore() {
return v;
}

const Vector3& Vector3::zero() { static const Vector3 v(0, 0, 0); return v; }
const Vector3& Vector3::zero() { static const Vector3 v(0, 0, 0); return v; }
const Vector3& Vector3::one() { static const Vector3 v(1, 1, 1); return v; }
const Vector3& Vector3::unitX() { static const Vector3 v(1, 0, 0); return v; }
const Vector3& Vector3::unitY() { static const Vector3 v(0, 1, 0); return v; }
const Vector3& Vector3::unitZ() { static const Vector3 v(0, 0, 1); return v; }
const Vector3& Vector3::up() { return unitZ(); }
const Vector3& Vector3::down() { static const Vector3 v(0, 0, -1); return v; }
const Vector3& Vector3::inf() { static const Vector3 v((float)G3D::finf(), (float)G3D::finf(), (float)G3D::finf()); return v; }
const Vector3& Vector3::nan() { static const Vector3 v((float)G3D::fnan(), (float)G3D::fnan(), (float)G3D::fnan()); return v; }
const Vector3& Vector3::minFinite(){ static const Vector3 v(-FLT_MAX, -FLT_MAX, -FLT_MAX); return v; }
Expand Down Expand Up @@ -303,11 +305,11 @@ Vector3 Vector3::cosPowHemiRandom(const Vector3& normal, const float k, Random&
Vector3 Vector3::hemiRandom(const Vector3& normal, Random& r) {
const Vector3& V = Vector3::random(r);

if (V.dot(normal) < 0) {
if (V.dot(normal) < 0)
return -V;
} else {
return V;
}

return V;

}

//----------------------------------------------------------------------------
Expand Down Expand Up @@ -345,12 +347,14 @@ Vector3 Vector3::refractionDirection(

float det = 1.0f - (float)square(hRatio) * (1.0f - (float)square(WdotN));

if (det < 0) {
if (det < 0)
{
// Total internal reflection
return Vector3::zero();
} else {
return -hRatio * (W - WdotN * N) - N * sqrt(det);
}

return -hRatio * (W - WdotN * N) - N * sqrt(det);

}

//----------------------------------------------------------------------------
Expand Down
31 changes: 31 additions & 0 deletions sql/migrations/20250307204042_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
DROP PROCEDURE IF EXISTS add_migration;
DELIMITER ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20250307204042');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20250307204042');
-- Add your query below.

-- Prospector Khazgorm (credit cmangos)
UPDATE `creature` SET `position_x` = -4181.31005859375, `position_y` = -2184.330078125, `position_z` = 50.26649856567383, `orientation` = 0.2923249900341034 WHERE `guid` = 13984 AND `id` = 3392;
UPDATE `creature` SET `position_x` = -4134.08984375, `position_y` = -2190.56005859375, `position_z` = 50.93259811401367, `orientation` = 5.971350193023682 WHERE `guid` = 14326 AND `id` = 3392;
UPDATE `creature` SET `position_x` = -4208.52001953125, `position_y` = -2274.22998046875, `position_z` = 50.26689910888672, `orientation` = 3.9258201122283936 WHERE `guid` = 14325 AND `id` = 3392;
UPDATE `creature` SET `position_x` = -4176.35009765625, `position_y` = -2235.199951171875, `position_z` = 51.03120040893555, `orientation` = 5.194900035858154 WHERE `guid` = 14324 AND `id` = 3392;

INSERT INTO `conditions` (`condition_entry`, `type`, `value1`, `value2`, `value3`, `value4`, `flags`) VALUES
(4130,-1,4105,4018,0,0,0); -- Player is Tauren and Patch is 1.10 or later

UPDATE `gossip_menu` SET `condition_id` = 4130, `text_id` = 8370 WHERE `entry` = 4015 AND `text_id` = 8368; -- Velma Warnam
UPDATE `gossip_menu` SET `condition_id` = 4130 WHERE `entry` = 4022 AND `text_id` = 8407; -- Xar'Ti

-- Correct lockId for Jinxed Hoodoo Pile according to both 1.8 and Classic sniffs
UPDATE `gameobject_template` SET `data0` = 43 WHERE `entry` IN (180228, 180229);

-- End of migration.
END IF;
END??
DELIMITER ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;
28 changes: 28 additions & 0 deletions sql/migrations/20250407022846_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
DROP PROCEDURE IF EXISTS add_migration;
DELIMITER ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20250407022846');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20250407022846');
-- Add your query below.


-- Add scripts for more spells.
UPDATE `spell_template` SET `script_name`='spell_gnomeregan_collecting_fallout' WHERE `entry`=12709;
DELETE FROM `spell_effect_mod` WHERE `Id`=12709;
UPDATE `spell_template` SET `script_name`='spell_linkens_boomerang' WHERE `entry`=15712;
UPDATE `spell_template` SET `script_name`='spell_scorpid_surprise' WHERE `entry`=6410;
UPDATE `spell_template` SET `script_name`='spell_rogue_vanish' WHERE `entry` IN (1856, 1857, 27617);
UPDATE `spell_template` SET `script_name`='spell_brittle_armor_dummy' WHERE `entry`=29284;
UPDATE `spell_template` SET `script_name`='spell_mercurial_shield_dummy' WHERE `entry`=29286;
UPDATE `spell_template` SET `script_name`='spell_everlook_transporter' WHERE `entry`=23442;


-- End of migration.
END IF;
END??
DELIMITER ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;
23 changes: 23 additions & 0 deletions sql/migrations/20250407071532_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
DROP PROCEDURE IF EXISTS add_migration;
DELIMITER ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20250407071532');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20250407071532');
-- Add your query below.


UPDATE `spell_template` SET `script_name`='spell_gdr_channel' WHERE `entry`=13278;
UPDATE `spell_template` SET `script_name`='spell_gdr_periodic' WHERE `entry`=13493;
DELETE FROM `spell_effect_mod` WHERE `Id` IN (13278, 13493);
UPDATE `spell_template` SET `script_name`='spell_paladin_judgement_of_light_proc_aura' WHERE `entry` IN (20185, 20344, 20345, 20346, 25751);


-- End of migration.
END IF;
END??
DELIMITER ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;
30 changes: 30 additions & 0 deletions sql/migrations/20250408054135_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
DROP PROCEDURE IF EXISTS add_migration;
DELIMITER ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20250408054135');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20250408054135');
-- Add your query below.


UPDATE `spell_template` SET `script_name`='spell_druid_swiftmend' WHERE `entry`=18562 AND `build`>=5464;
UPDATE `spell_template` SET `script_name`='spell_paladin_judgement_of_light_heal' WHERE `entry` IN (20267, 20341, 20342, 20343);
UPDATE `spell_template` SET `script_name`='spell_warrior_bloodrage' WHERE `entry`=2687;
UPDATE `spell_template` SET `script_name`='spell_ubrs_freeze_rookery_egg' WHERE `entry` IN (15748, 16028);
UPDATE `spell_template` SET `script_name`='spell_warlock_devour_magic' WHERE `entry` IN (19505, 19731, 19734, 19736);
UPDATE `spell_template` SET `script_name`='spell_av_create_shredder' WHERE `entry` IN (21544, 21565);
UPDATE `spell_template` SET `script_name`='spell_target_dummy' WHERE `entry` IN (4071, 4072, 19805);
UPDATE `spell_template` SET `script_name`='spell_eye_of_naxxramas_summon_rockwing_gargoyles' WHERE `entry`=16381;
UPDATE `spell_template` SET `script_name`='spell_chained_essence_of_eranikus' WHERE `entry`=12766;
UPDATE `spell_template` SET `script_name`='spell_release_umis_yeti' WHERE `entry`=17166;
UPDATE `spell_template` SET `script_name`='spell_vanquished_tentacle_of_cthun' WHERE `entry`=26391;


-- End of migration.
END IF;
END??
DELIMITER ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;
25 changes: 25 additions & 0 deletions sql/migrations/20250408123201_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
DROP PROCEDURE IF EXISTS add_migration;
DELIMITER ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20250408123201');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20250408123201');
-- Add your query below.


UPDATE `spell_template` SET `script_name`='spell_warlock_inferno' WHERE `entry` IN (1122, 24670);
UPDATE `spell_template` SET `script_name`='spell_thaddius_magnetic_pull' WHERE `entry`=28337;
UPDATE `spell_template` SET `script_name`='spell_maexxna_spider_web' WHERE `entry`=28434;
UPDATE `spell_template` SET `script_name`='spell_paladin_reckoning' WHERE `entry`=20178;
UPDATE `spell_template` SET `script_name`='spell_goblin_jumper_cables' WHERE `entry`=8342;
UPDATE `spell_template` SET `script_name`='spell_goblin_jumper_cables_xl' WHERE `entry`=22999;


-- End of migration.
END IF;
END??
DELIMITER ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;
Loading
Loading