From 87370944aa89bd0feafcda7bb1f1aae4365103aa Mon Sep 17 00:00:00 2001 From: Gildor Date: Thu, 27 Jun 2024 14:08:09 +0200 Subject: [PATCH] Core/Spells: Allow using SpellDifficulty.dbc on battleground maps (#30055) (cherry picked from commit e4caf52e5a3820399d7ddd5ea3963c36d1d71e28) --- .../Battlegrounds/IsleOfConquest/isle_of_conquest.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/Battlegrounds/IsleOfConquest/isle_of_conquest.cpp b/src/server/scripts/Battlegrounds/IsleOfConquest/isle_of_conquest.cpp index 36e8f5b341..0df68d1e3f 100644 --- a/src/server/scripts/Battlegrounds/IsleOfConquest/isle_of_conquest.cpp +++ b/src/server/scripts/Battlegrounds/IsleOfConquest/isle_of_conquest.cpp @@ -321,9 +321,10 @@ class spell_ioc_seaforium_blast_credit : public SpellScript if (!caster) return; - if (GetSpellInfo()->Id == SPELL_SEAFORIUM_BLAST) + uint32 spellId = GetSpellInfo()->Id; + if (spellId == SPELL_SEAFORIUM_BLAST) _creditSpell = SPELL_A_BOMB_INABLE_CREDIT; - else if (GetSpellInfo()->Id == SPELL_HUGE_SEAFORIUM_BLAST) + else if (spellId == SPELL_HUGE_SEAFORIUM_BLAST) _creditSpell = SPELL_A_BOMB_INATION_CREDIT; if (GetHitGObj() && GetHitGObj()->IsDestructibleBuilding())