mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7905] Implement ACTION_T_SET_SHEATH for creature event ai make possibility set ranged fire state.
Also related cleanup code in field cases and player Player::SetSheath.
This commit is contained in:
parent
2fc277fdb6
commit
b83f32fc19
10 changed files with 38 additions and 10 deletions
|
|
@ -7913,7 +7913,7 @@ void Player::SetVirtualItemSlot( uint8 i, Item* item)
|
|||
}
|
||||
}
|
||||
|
||||
void Player::SetSheath( uint32 sheathed )
|
||||
void Player::SetSheath( SheathState sheathed )
|
||||
{
|
||||
switch (sheathed)
|
||||
{
|
||||
|
|
@ -7939,7 +7939,7 @@ void Player::SetSheath( uint32 sheathed )
|
|||
SetVirtualItemSlot(2,NULL);
|
||||
break;
|
||||
}
|
||||
SetByteValue(UNIT_FIELD_BYTES_2, 0, sheathed); // this must visualize Sheath changing for other players...
|
||||
Unit::SetSheath(sheathed); // this must visualize Sheath changing for other players...
|
||||
}
|
||||
|
||||
uint8 Player::FindEquipSlot( ItemPrototype const* proto, uint32 slot, bool swap ) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue