mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[10958] Rename function to CanUseEquippedWeapon
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
4fe41fb335
commit
b3076146fc
6 changed files with 9 additions and 9 deletions
|
|
@ -7289,7 +7289,7 @@ void Player::_ApplyItemBonuses(ItemPrototype const *proto, uint8 slot, bool appl
|
|||
ApplyFeralAPBonus(feral_bonus, apply);
|
||||
}
|
||||
|
||||
if (!IsUseEquipedWeapon(attType))
|
||||
if (!CanUseEquippedWeapon(attType))
|
||||
return;
|
||||
|
||||
if (proto->Delay)
|
||||
|
|
@ -9095,7 +9095,7 @@ Item* Player::GetWeaponForAttack(WeaponAttackType attackType, bool nonbroken, bo
|
|||
if (!item || item->GetProto()->Class != ITEM_CLASS_WEAPON)
|
||||
return NULL;
|
||||
|
||||
if (useable && !IsUseEquipedWeapon(attackType))
|
||||
if (useable && !CanUseEquippedWeapon(attackType))
|
||||
return NULL;
|
||||
|
||||
if (nonbroken && item->IsBroken())
|
||||
|
|
@ -9113,7 +9113,7 @@ Item* Player::GetShield(bool useable) const
|
|||
if (!useable)
|
||||
return item;
|
||||
|
||||
if (item->IsBroken() || !IsUseEquipedWeapon(OFF_ATTACK))
|
||||
if (item->IsBroken() || !CanUseEquippedWeapon(OFF_ATTACK))
|
||||
return NULL;
|
||||
|
||||
return item;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue