From b47ef3ce90f6192784f8ce903b6738d568631809 Mon Sep 17 00:00:00 2001 From: Ovah Date: Sat, 1 Oct 2022 17:21:07 +0200 Subject: Core/Spells: fixed up block mechanics (#28286) * Ranged attacks can now be blocked * Implement SPELL_ATTR3_COMPLETELY_BLOCKED * Fixed a bug which was causing blocking to block entire spell effects regardless if the attribute was present or not * Fixed a logic mistake which was causing blocks to roll twice (once for effect negation and once on hit) * No longer send blocked miss conditions in spell_go packets when the spell is not completely blocked to match sniff data --- src/server/shared/SharedDefines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/shared/SharedDefines.h') diff --git a/src/server/shared/SharedDefines.h b/src/server/shared/SharedDefines.h index b19c205d97b..0bdd89004f7 100644 --- a/src/server/shared/SharedDefines.h +++ b/src/server/shared/SharedDefines.h @@ -517,7 +517,7 @@ enum SpellAttr3 : uint32 SPELL_ATTR3_UNK0 = 0x00000001, // TITLE Unknown attribute 0@Attr3 SPELL_ATTR3_IGNORE_PROC_SUBCLASS_MASK = 0x00000002, // 1 Ignores subclass mask check when checking proc SPELL_ATTR3_UNK2 = 0x00000004, // TITLE Unknown attribute 2@Attr3 - SPELL_ATTR3_BLOCKABLE_SPELL = 0x00000008, // TITLE Blockable spell + SPELL_ATTR3_COMPLETELY_BLOCKED = 0x00000008, // TITLE Completely Blocked SPELL_ATTR3_IGNORE_RESURRECTION_TIMER = 0x00000010, // TITLE Ignore resurrection timer SPELL_ATTR3_UNK5 = 0x00000020, // TITLE Unknown attribute 5@Attr3 SPELL_ATTR3_UNK6 = 0x00000040, // TITLE Unknown attribute 6@Attr3 -- cgit v1.2.3