mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[12162] totem items are no longer needed. Thanks Sovak
Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
parent
55ebf1b64f
commit
2bb6130e42
4 changed files with 1 additions and 45 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue