mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Scripts/ICC): Change trigger flag for Battle Experience spell (#11466)
* fix(Scripts/ICC): Change trigger flag for Battle Ecperience spell * closes https://github.com/azerothcore/azerothcore-wotlk/issues/6785 * cherry-pick part of commit (TrinityCore/TrinityCore@5b8e68e)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1650555787208782000');
|
||||
|
||||
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_igb_battle_experience_check';
|
||||
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
|
||||
(71201, 'spell_igb_battle_experience_check');
|
||||
@@ -2719,6 +2719,22 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
// 71201 - Battle Experience - proc should never happen, handled in script
|
||||
class spell_igb_battle_experience_check : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_igb_battle_experience_check);
|
||||
|
||||
bool CheckProc(ProcEventInfo& /*eventInfo*/)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
DoCheckProc += AuraCheckProcFn(spell_igb_battle_experience_check::CheckProc);
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_boss_icecrown_gunship_battle()
|
||||
{
|
||||
new npc_gunship();
|
||||
@@ -2750,4 +2766,5 @@ void AddSC_boss_icecrown_gunship_battle()
|
||||
new spell_igb_below_zero();
|
||||
new spell_igb_on_gunship_deck();
|
||||
new achievement_im_on_a_boat();
|
||||
RegisterSpellScript(spell_igb_battle_experience_check);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user