Core/Spells: Define and implement new SpellCastFlagsEx - CAST_FLAG_EX_SUPPRESS_CASTER_ANIM that causes spell caster animations to be skipped

This commit is contained in:
Shauren
2026-01-10 22:40:28 +01:00
parent 1ff3bac726
commit df670cf0ac
5 changed files with 39 additions and 23 deletions

View File

@@ -1016,7 +1016,7 @@ class spell_dru_galactic_guardian : public AuraScript
Unit* target = GetTarget();
// free automatic moonfire on target
target->CastSpell(damageInfo->GetVictim(), SPELL_DRUID_MOONFIRE_DAMAGE, true);
target->CastSpell(damageInfo->GetVictim(), SPELL_DRUID_MOONFIRE_DAMAGE, TRIGGERED_FULL_MASK | TRIGGERED_SUPPRESS_CASTER_ANIM);
// Cast aura
target->CastSpell(damageInfo->GetVictim(), SPELL_DRUID_GALACTIC_GUARDIAN_AURA, true);

View File

@@ -2963,7 +2963,7 @@ class spell_pri_power_surge_periodic : public AuraScript
void HandleEffectPeriodic(AuraEffect const* /*aurEff*/) const
{
GetTarget()->CastSpell(GetTarget(), _spellId, TRIGGERED_IGNORE_GCD | TRIGGERED_IGNORE_SPELL_AND_CATEGORY_CD | TRIGGERED_IGNORE_POWER_COST | TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_IGNORE_CAST_TIME | TRIGGERED_DONT_REPORT_CAST_ERROR);
GetTarget()->CastSpell(GetTarget(), _spellId, TRIGGERED_IGNORE_GCD | TRIGGERED_IGNORE_SPELL_AND_CATEGORY_CD | TRIGGERED_IGNORE_POWER_COST | TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_IGNORE_CAST_TIME | TRIGGERED_DONT_REPORT_CAST_ERROR | TRIGGERED_SUPPRESS_CASTER_ANIM);
}
void Register() override