Scripts/Trial Of The Crusader: Fix application of spell Surge of Adrenaline (Icehowl) (#28933)

* Scripts/Trial Of The Crusader: Fix application of spell Surge of Adrenaline (Icehowl)
This commit is contained in:
Gildor
2023-04-25 08:35:38 +02:00
committed by GitHub
parent fdc2f5fd9e
commit 431a59eae1
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
--
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_icehowl_massive_crash';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(66683,'spell_icehowl_massive_crash'),
(67660,'spell_icehowl_massive_crash'),
(67661,'spell_icehowl_massive_crash'),
(67662,'spell_icehowl_massive_crash');

View File

@@ -1341,7 +1341,7 @@ class spell_icehowl_massive_crash : public AuraScript
void HandleSpeed(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
{
if (Player* target = GetTarget()->ToPlayer())
if (target->GetRaidDifficulty() == RAID_DIFFICULTY_10MAN_HEROIC || target->GetRaidDifficulty() == RAID_DIFFICULTY_25MAN_HEROIC)
if (target->GetRaidDifficulty() == RAID_DIFFICULTY_10MAN_NORMAL || target->GetRaidDifficulty() == RAID_DIFFICULTY_25MAN_NORMAL)
target->CastSpell(target, SPELL_SURGE_OF_ADRENALINE, true);
}