mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Spells/Ulduar: Fixes spell Mark Of The Faceless in General Vezax's Encounter
This commit is contained in:
@@ -41,6 +41,7 @@ enum eSpells
|
||||
{
|
||||
SPELL_AURA_OF_DESPAIR = 62692,
|
||||
SPELL_MARK_OF_THE_FACELESS = 63276,
|
||||
SPELL_MARK_OF_THE_FACELESS_DAMAGE = 63278,
|
||||
SPELL_SARONITE_BARRIER = 63364,
|
||||
SPELL_SEARING_FLAMES = 62661,
|
||||
SPELL_SHADOW_CRASH = 62660,
|
||||
@@ -408,9 +409,44 @@ public:
|
||||
};
|
||||
};
|
||||
|
||||
class spell_mark_of_the_faceless : public SpellScriptLoader
|
||||
{
|
||||
public:
|
||||
spell_mark_of_the_faceless() : SpellScriptLoader("spell_mark_of_the_faceless") { }
|
||||
|
||||
class spell_mark_of_the_faceless_AuraScript : public AuraScript
|
||||
{
|
||||
PrepareAuraScript(spell_mark_of_the_faceless_AuraScript);
|
||||
|
||||
void HandleEffectPeriodic(AuraEffect const* aurEff)
|
||||
{
|
||||
Unit* target = GetTarget();
|
||||
Unit* caster = GetCaster();
|
||||
|
||||
if (!caster || !target)
|
||||
return;
|
||||
|
||||
// Casted by CastCustomSpell() because when it's cast by CastSpell(), damage is 1
|
||||
int32 damage = int32(aurEff->GetBase()->GetEffect(EFFECT_0)->GetAmount());
|
||||
caster->CastCustomSpell(SPELL_MARK_OF_THE_FACELESS_DAMAGE, SPELLVALUE_BASE_POINT1, damage, target, true);
|
||||
}
|
||||
|
||||
void Register()
|
||||
{
|
||||
OnEffectPeriodic += AuraEffectPeriodicFn(spell_mark_of_the_faceless_AuraScript::HandleEffectPeriodic, EFFECT_0, SPELL_AURA_PERIODIC_DUMMY);
|
||||
}
|
||||
};
|
||||
|
||||
AuraScript* GetAuraScript() const
|
||||
{
|
||||
return new spell_mark_of_the_faceless_AuraScript();
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_boss_general_vezax()
|
||||
{
|
||||
new boss_general_vezax();
|
||||
new boss_saronite_animus();
|
||||
new npc_saronite_vapors();
|
||||
new spell_mark_of_the_faceless();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user