mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
Rebase resync
This commit is contained in:
parent
a0797532e8
commit
1997c1e903
3106 changed files with 11118 additions and 627576 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/**
|
||||
* This code is part of MaNGOS. Contributor & Copyright details are in AUTHORS/THANKS.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
|
|
@ -360,7 +360,8 @@ float ItemPrototype::getDPS() const
|
|||
return damage;
|
||||
}
|
||||
|
||||
Item::Item()
|
||||
Item::Item() :
|
||||
loot(NULL)
|
||||
{
|
||||
m_objectType |= TYPEMASK_ITEM;
|
||||
m_objectTypeId = TYPEID_ITEM;
|
||||
|
|
@ -536,7 +537,6 @@ void Item::SaveToDB()
|
|||
stmt.Execute();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (m_lootState != ITEM_LOOT_NONE && m_lootState != ITEM_LOOT_TEMPORARY)
|
||||
|
|
@ -996,10 +996,6 @@ bool Item::IsFitToSpellRequirements(SpellEntry const* spellInfo) const
|
|||
{
|
||||
ItemPrototype const* proto = GetProto();
|
||||
|
||||
SpellEquippedItemsEntry const* equippedItems = spellInfo->GetSpellEquippedItems();
|
||||
if (!equippedItems)
|
||||
return true;
|
||||
|
||||
// Enchant spells only use Effect[0] (patch 3.3.2)
|
||||
if (proto->IsVellum())
|
||||
{
|
||||
|
|
@ -1016,6 +1012,10 @@ bool Item::IsFitToSpellRequirements(SpellEntry const* spellInfo) const
|
|||
}
|
||||
}
|
||||
|
||||
SpellEquippedItemsEntry const* equippedItems = spellInfo->GetSpellEquippedItems();
|
||||
if (!equippedItems)
|
||||
return true;
|
||||
|
||||
if (equippedItems->EquippedItemClass != -1) // -1 == any item class
|
||||
{
|
||||
if (equippedItems->EquippedItemClass != int32(proto->Class))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue