aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Zandalar
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-08-16 15:31:10 +0200
committerShauren <shauren.trinity@gmail.com>2025-08-16 15:31:10 +0200
commitde80c713d0aad00166bb2a25fe70ec3672da7fa0 (patch)
tree1adadfb5424f2d15663319c76aea2cffadd75377 /src/server/scripts/Zandalar
parent7fe0d4a81c7d6d423e296bbaf5a7ead10fff5fcd (diff)
Scripts/Spells: Refactor spell script internals to fix -Wcast-function-type-mismatch warning
Diffstat (limited to 'src/server/scripts/Zandalar')
-rw-r--r--src/server/scripts/Zandalar/AtalDazar/boss_priestess_alun_za.cpp8
-rw-r--r--src/server/scripts/Zandalar/Underrot/boss_sporecaller_zancha.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/server/scripts/Zandalar/AtalDazar/boss_priestess_alun_za.cpp b/src/server/scripts/Zandalar/AtalDazar/boss_priestess_alun_za.cpp
index dae46d11fdc..24153b4f79e 100644
--- a/src/server/scripts/Zandalar/AtalDazar/boss_priestess_alun_za.cpp
+++ b/src/server/scripts/Zandalar/AtalDazar/boss_priestess_alun_za.cpp
@@ -385,7 +385,7 @@ private:
// 258388 - Ritual
class spell_priestess_alun_za_ritual : public SpellScript
{
- static void SetDest(SpellDestination& dest)
+ static void SetDest(SpellScript const&, SpellDestination& dest)
{
dest.Relocate(Trinity::Containers::SelectRandomContainerElement(RitualPosition));
}
@@ -421,7 +421,7 @@ class spell_priestess_alun_za_agitate : public SpellScript
});
}
- static void SelectTarget(std::list<WorldObject*>& targets)
+ static void SelectTarget(SpellScript const&, std::list<WorldObject*>& targets)
{
targets.resize(1);
}
@@ -479,7 +479,7 @@ class spell_priestess_alun_za_molten_gold_selector : public SpellScript
// 255592 - Tainted Blood
class spell_priestess_alun_za_tainted_blood : public SpellScript
{
- static void FilterTargets(std::list<WorldObject*>& targets)
+ static void FilterTargets(SpellScript const&, std::list<WorldObject*>& targets)
{
Trinity::Containers::RandomResize(targets, 1);
}
@@ -607,7 +607,7 @@ class spell_priestess_alun_za_transfusion_damage : public SpellScript
// 259209 - Summon Spirit of Gold
class spell_priestess_alun_za_spirit_of_gold : public SpellScript
{
- static void SetDest(SpellDestination& dest)
+ static void SetDest(SpellScript const&, SpellDestination& dest)
{
dest.Relocate(SpiritOfGoldSpawnPosition);
}
diff --git a/src/server/scripts/Zandalar/Underrot/boss_sporecaller_zancha.cpp b/src/server/scripts/Zandalar/Underrot/boss_sporecaller_zancha.cpp
index 76b068b1e6c..6c446d6582a 100644
--- a/src/server/scripts/Zandalar/Underrot/boss_sporecaller_zancha.cpp
+++ b/src/server/scripts/Zandalar/Underrot/boss_sporecaller_zancha.cpp
@@ -474,7 +474,7 @@ class spell_sporecaller_zancha_boundless_rot : public SpellScript
{
static constexpr Position CenterPosition = { 1032.9444f, 1058.2899f, 33.330894f };
- static void SetDest(SpellDestination& dest)
+ static void SetDest(SpellScript const&, SpellDestination& dest)
{
dest.Relocate(CenterPosition);
}