[12162] totem items are no longer needed. Thanks Sovak

Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
Salja 2012-08-31 11:49:16 +02:00 committed by Antz
parent 55ebf1b64f
commit 2bb6130e42
4 changed files with 1 additions and 45 deletions

View file

@ -6926,25 +6926,6 @@ SpellCastResult Spell::CheckItems()
if (totems != 0)
return SPELL_FAILED_TOTEMS;
// Check items for TotemCategory (items presence in inventory)
uint32 TotemCategory = MAX_SPELL_TOTEM_CATEGORIES;
for(int i= 0; i < MAX_SPELL_TOTEM_CATEGORIES; ++i)
{
if (spellTotems->TotemCategory[i] != 0)
{
if (p_caster->HasItemTotemCategory(spellTotems->TotemCategory[i]))
{
TotemCategory -= 1;
continue;
}
}
else
TotemCategory -= 1;
}
if (TotemCategory != 0)
return SPELL_FAILED_TOTEM_CATEGORY;
}
}