From 6482b222cff2603180949bd699e00b68623236c2 Mon Sep 17 00:00:00 2001 From: Ovalord <1Don7H4v3@m41L.com> Date: Wed, 29 Nov 2017 11:34:23 +0100 Subject: [PATCH] Core/Spells: shaman totems no longer require totem items since patch 4.0.1 --- src/server/game/Spells/Spell.cpp | 38 -------------------------------- 1 file changed, 38 deletions(-) diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 81726c54dcd..81ba81c4376 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -6406,44 +6406,6 @@ SpellCastResult Spell::CheckItems(uint32* param1 /*= nullptr*/, uint32* param2 / } } } - - // check totem-item requirements (items presence in inventory) - uint32 totems = 2; - for (uint8 i = 0; i < 2; ++i) - { - if (m_spellInfo->Totem[i] != 0) - { - if (player->HasItemCount(m_spellInfo->Totem[i])) - { - totems -= 1; - continue; - } - } - else - totems -= 1; - } - - if (totems != 0) - return SPELL_FAILED_TOTEMS; - - // Check items for TotemCategory (items presence in inventory) - uint32 totemCategory = 2; - for (uint8 i = 0; i < 2; ++i) - { - if (m_spellInfo->TotemCategory[i] != 0) - { - if (player->HasItemTotemCategory(m_spellInfo->TotemCategory[i])) - { - totemCategory -= 1; - continue; - } - } - else - totemCategory -= 1; - } - - if (totemCategory != 0) - return SPELL_FAILED_TOTEM_CATEGORY; } // special checks for spell effects