mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Spells/Ulduar: Fixes spell Mark Of The Faceless in General Vezax's Encounter
This commit is contained in:
@@ -2129,6 +2129,7 @@ INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
|
||||
( 63981, 'spell_ulduar_stone_grip_cast_target'),
|
||||
( 64702, 'spell_ulduar_squeezed_lifeless'),
|
||||
( 63027, 'spell_ulduar_proximity_mines'),
|
||||
( 63276, 'spell_mark_of_the_faceless'),
|
||||
-- Eye Of Eternity
|
||||
( 56105, 'spell_malygos_vortex_dummy'),
|
||||
( 55873, 'spell_malygos_vortex_visual'),
|
||||
|
||||
4
sql/updates/world/2011_05_08_00_spell_script_names.sql
Normal file
4
sql/updates/world/2011_05_08_00_spell_script_names.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
DELETE FROM `spell_script_names` WHERE `spell_id`=63276;
|
||||
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`)
|
||||
VALUES
|
||||
(63276,'spell_mark_of_the_faceless');
|
||||
@@ -3927,6 +3927,7 @@ void SpellMgr::LoadSpellCustomAttr()
|
||||
case 67860: // Impale
|
||||
case 69293: // Wing Buffet
|
||||
case 74439: // Machine Gun
|
||||
case 63278: // Mark of the Faceless
|
||||
mSpellCustomAttr[i] |= SPELL_ATTR0_CU_IGNORE_ARMOR;
|
||||
++count;
|
||||
break;
|
||||
|
||||
@@ -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