From 2a51edc5bcebe40c114e37ef3b24da6c8f095892 Mon Sep 17 00:00:00 2001 From: Ovah Date: Thu, 7 Dec 2017 17:41:11 +0100 Subject: Core/Creatures: Implemented extra flag to use offhand attacks (#21008) * Fixed initial offhand attack timer so the main and offhand attacks will now act blizzlike instead of getting executed at the same time Note: since some creature equipment items cannot be identified as weapon since they are only visual items there is no way to detect this automaticly (cherry picked from commit 869affa89300c24b85896a050b58241714786454) --- src/server/scripts/Commands/cs_npc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_npc.cpp b/src/server/scripts/Commands/cs_npc.cpp index 4c1eb90bcfa..daafecc8ef1 100644 --- a/src/server/scripts/Commands/cs_npc.cpp +++ b/src/server/scripts/Commands/cs_npc.cpp @@ -51,7 +51,7 @@ struct EnumName #define CREATE_NAMED_ENUM(VALUE) { VALUE, STRINGIZE(VALUE) } #define NPC_FLAG_COUNT 24 -#define FLAGS_EXTRA_COUNT 20 +#define FLAGS_EXTRA_COUNT 21 EnumName const npcFlagTexts[NPC_FLAG_COUNT] = { @@ -203,7 +203,8 @@ EnumName const flagsExtra[FLAGS_EXTRA_COUNT] = CREATE_NAMED_ENUM(CREATURE_FLAG_EXTRA_NO_PLAYER_DAMAGE_REQ), CREATE_NAMED_ENUM(CREATURE_FLAG_EXTRA_DUNGEON_BOSS), CREATE_NAMED_ENUM(CREATURE_FLAG_EXTRA_IGNORE_PATHFINDING), - CREATE_NAMED_ENUM(CREATURE_FLAG_EXTRA_IMMUNITY_KNOCKBACK) + CREATE_NAMED_ENUM(CREATURE_FLAG_EXTRA_IMMUNITY_KNOCKBACK), + CREATE_NAMED_ENUM(CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK) }; bool HandleNpcSpawnGroup(ChatHandler* handler, char const* args) -- cgit v1.2.3