Core/Spells: Allow using SpellDifficulty.dbc on battleground maps (#30055)

This commit is contained in:
Gildor
2024-06-27 14:08:09 +02:00
committed by GitHub
parent 8824889f53
commit e4caf52e5a
3 changed files with 15 additions and 7 deletions

View File

@@ -215,10 +215,12 @@ class spell_ioc_launch : public SpellScript
enum SeaforiumBombSpells
{
SPELL_SEAFORIUM_BLAST = 66676,
SPELL_HUGE_SEAFORIUM_BLAST = 66672,
SPELL_A_BOMB_INABLE_CREDIT = 68366,
SPELL_A_BOMB_INATION_CREDIT = 68367
SPELL_SEAFORIUM_BLAST = 66676,
SPELL_SEAFORIUM_BLAST_H = 67814,
SPELL_HUGE_SEAFORIUM_BLAST = 66672,
SPELL_HUGE_SEAFORIUM_BLAST_H = 67813,
SPELL_A_BOMB_INABLE_CREDIT = 68366,
SPELL_A_BOMB_INATION_CREDIT = 68367
};
// 66672 - Huge Seaforium Blast
@@ -239,9 +241,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 || spellId == SPELL_SEAFORIUM_BLAST_H)
_creditSpell = SPELL_A_BOMB_INABLE_CREDIT;
else if (GetSpellInfo()->Id == SPELL_HUGE_SEAFORIUM_BLAST)
else if (spellId == SPELL_HUGE_SEAFORIUM_BLAST || spellId == SPELL_HUGE_SEAFORIUM_BLAST_H)
_creditSpell = SPELL_A_BOMB_INATION_CREDIT;
if (GetHitGObj() && GetHitGObj()->IsDestructibleBuilding())