mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
Merge branch 'master' into 310
Conflicts: src/game/GameObject.h src/game/MiscHandler.cpp src/game/Player.cpp src/game/QueryHandler.cpp src/game/QuestHandler.cpp src/game/SkillHandler.cpp src/game/SpellAuras.cpp src/game/SpellEffects.cpp src/game/Unit.cpp src/game/WorldSession.h
This commit is contained in:
commit
e454cb693d
8 changed files with 244 additions and 234 deletions
|
|
@ -8681,7 +8681,7 @@ uint8 Player::_CanStoreItem_InSpecificSlot( uint8 bag, uint8 slot, ItemPosCountV
|
|||
if(slot >= KEYRING_SLOT_START && slot < KEYRING_SLOT_START+GetMaxKeyringSize() && !(pProto->BagFamily & BAG_FAMILY_MASK_KEYS))
|
||||
return EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG;
|
||||
|
||||
// currencytoken case (disabled until proper implement)
|
||||
// currencytoken case
|
||||
if(slot >= CURRENCYTOKEN_SLOT_START && slot < CURRENCYTOKEN_SLOT_END && !(pProto->BagFamily & BAG_FAMILY_MASK_CURRENCY_TOKENS))
|
||||
return EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG;
|
||||
|
||||
|
|
@ -10696,7 +10696,7 @@ void Player::DestroyZoneLimitedItem( bool update, uint32 new_zone )
|
|||
for(uint32 j = 0; j < pBag->GetBagSize(); ++j)
|
||||
if (Item* pItem = pBag->GetItemByPos(j))
|
||||
if (pItem->IsLimitedToAnotherMapOrZone(GetMapId(), new_zone))
|
||||
DestroyItem( i, j, update);
|
||||
DestroyItem(i, j, update);
|
||||
|
||||
// in equipment and bag list
|
||||
for(int i = EQUIPMENT_SLOT_START; i < INVENTORY_SLOT_BAG_END; ++i)
|
||||
|
|
@ -11377,7 +11377,7 @@ void Player::UpdateEnchantTime(uint32 time)
|
|||
|
||||
void Player::AddEnchantmentDurations(Item *item)
|
||||
{
|
||||
for(int x=0; x<MAX_ENCHANTMENT_SLOT; ++x)
|
||||
for(int x = 0; x < MAX_ENCHANTMENT_SLOT; ++x)
|
||||
{
|
||||
if(!item->GetEnchantmentId(EnchantmentSlot(x)))
|
||||
continue;
|
||||
|
|
@ -11482,7 +11482,7 @@ void Player::ApplyEnchantment(Item *item,bool apply)
|
|||
ApplyEnchantment(item, EnchantmentSlot(slot), apply);
|
||||
}
|
||||
|
||||
void Player::ApplyEnchantment(Item *item,EnchantmentSlot slot, bool apply, bool apply_dur, bool ignore_condition)
|
||||
void Player::ApplyEnchantment(Item *item, EnchantmentSlot slot, bool apply, bool apply_dur, bool ignore_condition)
|
||||
{
|
||||
if(!item)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue