Skip to content

Commit

Permalink
[Spell] Add "Controlled" Prevention for Backstab and Gouge Spells
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonXS authored and killerwife committed Sep 26, 2023
1 parent dc0cafd commit 9e4d789
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sql/base/dbc/cmangos_fixes/Spell.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2719,7 +2719,10 @@ UPDATE `spell_template` SET `AttributesEx4`=`AttributesEx4`|64 WHERE `Id`=33949;

-- Backstab spells used by creatures
-- these are all easily controlled and made castable only from behind via AI, however when a player Mind Controls the NPC, we need these attributes to prevent usage from the front:
UPDATE `spell_template` SET AttributesServerside=AttributesServerside|0x00000008 WHERE `Id` IN (7159,15582,15657,22416,30992,34614,37685);
UPDATE `spell_template` SET AttributesServerside=AttributesServerside|0x00000008 WHERE `Id` IN (53,2589,2590,2591,6595,7159,8355,8721,11279,11280,11281,15582,15657,22416,24016,25300,26863,30992,34171,34614,37685,37956); -- SPELL_ATTR_SS_FACING_BACK

-- Infront only Spells - SPELL_FACING_FLAG_INFRONT "Must be in front of the caster."
UPDATE `spell_template` SET `FacingCasterFlags` = 1 WHERE `Id` IN (12540,13579,29425,36862,38863);

-- Stormchops - Fix targeting
UPDATE spell_template SET EffectImplicitTargetA2=1,EffectImplicitTargetB2=0 WHERE Id IN(43730);
Expand Down

0 comments on commit 9e4d789

Please sign in to comment.