mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[0114] Updated "item_template" Thanks Fabi Fix some DBC problems, some clean.
Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
parent
a6b1264405
commit
73ec9c2ce4
14 changed files with 170 additions and 348 deletions
|
|
@ -3661,7 +3661,7 @@ float Unit::GetUnitBlockChance() const
|
|||
if (player->CanBlock() && player->CanUseEquippedWeapon(OFF_ATTACK))
|
||||
{
|
||||
Item* tmpitem = player->GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_OFFHAND);
|
||||
if (tmpitem && !tmpitem->IsBroken() && tmpitem->GetProto()->Block)
|
||||
if (tmpitem && !tmpitem->IsBroken())
|
||||
return GetFloatValue(PLAYER_BLOCK_PERCENTAGE);
|
||||
}
|
||||
// is player but has no block ability or no not broken shield equipped
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue