mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 10:30:01 +01:00
[Equip score] Skip can take more check
This commit is contained in:
parent
924c1a2197
commit
45ffd4bd07
@ -4409,10 +4409,11 @@ InventoryResult PlayerbotAI::CanEquipItem(uint8 slot, uint16& dest, Item* pItem,
|
|||||||
if (pItem->IsBindedNotWith(bot))
|
if (pItem->IsBindedNotWith(bot))
|
||||||
return EQUIP_ERR_DONT_OWN_THAT_ITEM;
|
return EQUIP_ERR_DONT_OWN_THAT_ITEM;
|
||||||
|
|
||||||
// check count of items (skip for auto move for same player from bank)
|
// Yunfan: skip it
|
||||||
InventoryResult res = bot->CanTakeMoreSimilarItems(pItem);
|
// // check count of items (skip for auto move for same player from bank)
|
||||||
if (res != EQUIP_ERR_OK)
|
// InventoryResult res = bot->CanTakeMoreSimilarItems(pItem);
|
||||||
return res;
|
// if (res != EQUIP_ERR_OK)
|
||||||
|
// return res;
|
||||||
|
|
||||||
ScalingStatDistributionEntry const* ssd = pProto->ScalingStatDistribution ? sScalingStatDistributionStore.LookupEntry(pProto->ScalingStatDistribution) : 0;
|
ScalingStatDistributionEntry const* ssd = pProto->ScalingStatDistribution ? sScalingStatDistributionStore.LookupEntry(pProto->ScalingStatDistribution) : 0;
|
||||||
// check allowed level (extend range to upper values if MaxLevel more or equal max player level, this let GM set high level with 1...max range items)
|
// check allowed level (extend range to upper values if MaxLevel more or equal max player level, this let GM set high level with 1...max range items)
|
||||||
@ -4427,7 +4428,7 @@ InventoryResult PlayerbotAI::CanEquipItem(uint8 slot, uint16& dest, Item* pItem,
|
|||||||
if (!bot->CanUseAttackType(bot->GetAttackBySlot(eslot)))
|
if (!bot->CanUseAttackType(bot->GetAttackBySlot(eslot)))
|
||||||
return EQUIP_ERR_NOT_WHILE_DISARMED;
|
return EQUIP_ERR_NOT_WHILE_DISARMED;
|
||||||
|
|
||||||
res = bot->CanUseItem(pItem, not_loading);
|
InventoryResult res = bot->CanUseItem(pItem, not_loading);
|
||||||
if (res != EQUIP_ERR_OK)
|
if (res != EQUIP_ERR_OK)
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user