mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/Spells): Silithyst (#8656)
This commit is contained in:
@@ -0,0 +1,4 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1634764926168630600');
|
||||||
|
|
||||||
|
DELETE FROM `spell_script_names` WHERE `spell_id`=29519 AND `ScriptName`='spell_silithyst';
|
||||||
|
INSERT INTO `spell_script_names` VALUES (29519,'spell_silithyst');
|
||||||
@@ -7373,6 +7373,13 @@ void SpellMgr::LoadDbcDataCorrections()
|
|||||||
spellInfo->RangeIndex = 5; // 40yd
|
spellInfo->RangeIndex = 5; // 40yd
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 29519 - Silithyst
|
||||||
|
ApplySpellFix({ 29519 }, [](SpellEntry* spellInfo)
|
||||||
|
{
|
||||||
|
spellInfo->EffectApplyAuraName[0] = SPELL_AURA_MOD_DECREASE_SPEED;
|
||||||
|
spellInfo->EffectBasePoints[EFFECT_0] = -25;
|
||||||
|
});
|
||||||
|
|
||||||
// Ulduar: Kologarn Focused Eyebeam Summon Trigger
|
// Ulduar: Kologarn Focused Eyebeam Summon Trigger
|
||||||
ApplySpellFix({ 63342 }, [](SpellEntry* spellInfo)
|
ApplySpellFix({ 63342 }, [](SpellEntry* spellInfo)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5447,8 +5447,42 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 29519 - Silithyst
|
||||||
|
class spell_silithyst : public SpellScriptLoader
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
spell_silithyst() : SpellScriptLoader("spell_silithyst") {}
|
||||||
|
|
||||||
|
class spell_silithyst_AuraScript : public AuraScript
|
||||||
|
{
|
||||||
|
PrepareAuraScript(spell_silithyst_AuraScript);
|
||||||
|
|
||||||
|
void OnApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||||
|
{
|
||||||
|
GetCaster()->SetPvP(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||||
|
{
|
||||||
|
GetCaster()->SummonGameObject(181597, GetCaster()->GetPositionX(), GetCaster()->GetPositionY(), GetCaster()->GetPositionZ(), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 10 * IN_MILLISECONDS * MINUTE);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Register() override
|
||||||
|
{
|
||||||
|
AfterEffectApply += AuraEffectApplyFn(spell_silithyst_AuraScript::OnApply, EFFECT_0, SPELL_AURA_MOD_DECREASE_SPEED, AURA_EFFECT_HANDLE_REAL);
|
||||||
|
AfterEffectRemove += AuraEffectRemoveFn(spell_silithyst_AuraScript::OnRemove, EFFECT_0, SPELL_AURA_MOD_DECREASE_SPEED, AURA_EFFECT_HANDLE_REAL);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
AuraScript* GetAuraScript() const override
|
||||||
|
{
|
||||||
|
return new spell_silithyst_AuraScript();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
void AddSC_generic_spell_scripts()
|
void AddSC_generic_spell_scripts()
|
||||||
{
|
{
|
||||||
|
new spell_silithyst();
|
||||||
new spell_gen_5000_gold();
|
new spell_gen_5000_gold();
|
||||||
new spell_gen_model_visible();
|
new spell_gen_model_visible();
|
||||||
new spell_the_flag_of_ownership();
|
new spell_the_flag_of_ownership();
|
||||||
|
|||||||
Reference in New Issue
Block a user