Core/Scripts: fix issues with 'Squeeze' on Yogg-Saron encounter

- Unassigned spell script for 25-man difficulty
- Didn't remove aura on 25-man when tentacle killed
This commit is contained in:
ariel-
2018-01-02 01:30:41 -03:00
parent a0dcd9c798
commit de3fd4d076
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_yogg_saron_squeeze';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(64125, 'spell_yogg_saron_squeeze'),
(64126, 'spell_yogg_saron_squeeze');

View File

@@ -28,6 +28,7 @@
#include "ScriptedCreature.h"
#include "Spell.h"
#include "SpellAuraEffects.h"
#include "SpellMgr.h"
#include "SpellScript.h"
#include "TemporarySummon.h"
#include "ulduar.h"
@@ -1308,7 +1309,7 @@ class npc_constrictor_tentacle : public CreatureScript
void PassengerBoarded(Unit* passenger, int8 /*seatId*/, bool apply) override
{
if (!apply)
passenger->RemoveAurasDueToSpell(SPELL_SQUEEZE);
passenger->RemoveAurasDueToSpell(sSpellMgr->GetSpellIdForDifficulty(SPELL_SQUEEZE, passenger));
}
void UpdateAI(uint32 /*diff*/) override
@@ -2422,7 +2423,7 @@ class spell_yogg_saron_lunge : public SpellScriptLoader // 64131
}
};
class spell_yogg_saron_squeeze : public SpellScriptLoader // 64125
class spell_yogg_saron_squeeze : public SpellScriptLoader // 64125, 64126
{
public:
spell_yogg_saron_squeeze() : SpellScriptLoader("spell_yogg_saron_squeeze") { }