Scripts/Spells: Fix priest talent Translucent Image (#31763)

This commit is contained in:
Cristian Vintila
2026-04-13 23:33:14 +03:00
committed by GitHub
parent 37c2b1fa9b
commit f82e03ac96
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
DELETE FROM `spell_script_names` WHERE `ScriptName` IN ('spell_pri_translucent_image');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(586, 'spell_pri_translucent_image');

View File

@@ -246,6 +246,7 @@ enum PriestSpells
SPELL_PRIEST_TRANQUIL_LIGHT = 196816,
SPELL_PRIEST_THE_PENITENT_AURA = 200347,
SPELL_PRIEST_TRAIL_OF_LIGHT_HEAL = 234946,
SPELL_PRIEST_TRANSLUCENT_IMAGE = 373446,
SPELL_PRIEST_TRINITY = 214205,
SPELL_PRIEST_TRINITY_EFFECT = 290793,
SPELL_PRIEST_TWILIGHT_EQUILIBRIUM_HOLY = 390706,
@@ -4845,6 +4846,26 @@ class spell_pri_train_of_thought : public AuraScript
}
};
// 373446 - Translucent Image
// Triggered by 586 - Fade
class spell_pri_translucent_image : public SpellScript
{
bool Load() override
{
return !GetCaster()->HasAura(SPELL_PRIEST_TRANSLUCENT_IMAGE);
}
static void PreventEffect(SpellScript const&, WorldObject*& target)
{
target = nullptr;
}
void Register() override
{
OnObjectTargetSelect += SpellObjectTargetSelectFn(spell_pri_translucent_image::PreventEffect, EFFECT_3, TARGET_UNIT_CASTER);
}
};
// 390705 - Twilight Equilibrium
class spell_pri_twilight_equilibrium : public AuraScript
{
@@ -5537,6 +5558,7 @@ void AddSC_priest_spell_scripts()
RegisterSpellScript(spell_pri_t3_4p_bonus);
RegisterSpellScript(spell_pri_t5_heal_2p_bonus);
RegisterSpellScript(spell_pri_t10_heal_2p_bonus);
RegisterSpellScript(spell_pri_translucent_image);
RegisterSpellScript(spell_pri_twilight_equilibrium);
RegisterSpellScript(spell_pri_twilight_equilibrium_shadow_word_pain);
RegisterSpellScript(spell_pri_twist_of_fate);