mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[11443] Implement SPELL_AURA_MIRROR_IMAGE (247) and related receive/reply packets
Inspired by different patches posted in forum, thanks guys for the help it was :D Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
d98b9b9670
commit
4c3b61d4f5
11 changed files with 160 additions and 6 deletions
|
|
@ -9183,6 +9183,16 @@ Item* Player::GetItemByPos( uint8 bag, uint8 slot ) const
|
|||
return NULL;
|
||||
}
|
||||
|
||||
uint32 Player::GetItemDisplayIdInSlot(uint8 bag, uint8 slot) const
|
||||
{
|
||||
const Item* pItem = GetItemByPos(bag, slot);
|
||||
|
||||
if (!pItem)
|
||||
return 0;
|
||||
|
||||
return pItem->GetProto()->DisplayInfoID;
|
||||
}
|
||||
|
||||
Item* Player::GetWeaponForAttack(WeaponAttackType attackType, bool nonbroken, bool useable) const
|
||||
{
|
||||
uint8 slot;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue