aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 51fbc3413c0..e607b9a453f 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -11004,7 +11004,7 @@ Item* Player::_StoreItem( uint16 pos, Item *pItem, uint32 count, bool clone, boo
if (IsInWorld() && update)
{
pItem->AddToWorld();
- pItem->SendUpdateToPlayer( this );
+ pItem->SendCreateUpdateToPlayer( this );
}
pItem->SetState(ITEM_CHANGED, this);
@@ -11015,7 +11015,7 @@ Item* Player::_StoreItem( uint16 pos, Item *pItem, uint32 count, bool clone, boo
if( IsInWorld() && update )
{
pItem->AddToWorld();
- pItem->SendUpdateToPlayer( this );
+ pItem->SendCreateUpdateToPlayer( this );
}
pItem->SetState(ITEM_CHANGED, this);
pBag->SetState(ITEM_CHANGED, this);
@@ -11035,7 +11035,7 @@ Item* Player::_StoreItem( uint16 pos, Item *pItem, uint32 count, bool clone, boo
pItem2->SetCount( pItem2->GetCount() + count );
if (IsInWorld() && update)
- pItem2->SendUpdateToPlayer( this );
+ pItem2->SendCreateUpdateToPlayer( this );
if (!clone)
{
@@ -11125,7 +11125,7 @@ Item* Player::EquipItem( uint16 pos, Item *pItem, bool update )
if( IsInWorld() && update )
{
pItem->AddToWorld();
- pItem->SendUpdateToPlayer( this );
+ pItem->SendCreateUpdateToPlayer( this );
}
ApplyEquipCooldown(pItem);
@@ -11152,7 +11152,7 @@ Item* Player::EquipItem( uint16 pos, Item *pItem, bool update )
{
pItem2->SetCount( pItem2->GetCount() + pItem->GetCount() );
if( IsInWorld() && update )
- pItem2->SendUpdateToPlayer( this );
+ pItem2->SendCreateUpdateToPlayer( this );
// delete item (it not in any slot currently)
//pItem->DeleteFromDB();
@@ -11193,7 +11193,7 @@ void Player::QuickEquipItem( uint16 pos, Item *pItem)
if( IsInWorld() )
{
pItem->AddToWorld();
- pItem->SendUpdateToPlayer( this );
+ pItem->SendCreateUpdateToPlayer( this );
}
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM, pItem->GetEntry());
@@ -11320,7 +11320,7 @@ void Player::RemoveItem(uint8 bag, uint8 slot, bool update)
// pItem->SetUInt64Value(ITEM_FIELD_OWNER, 0); not clear owner at remove (it will be set at store). This used in mail and auction code
pItem->SetSlot(NULL_SLOT);
if(IsInWorld() && update)
- pItem->SendUpdateToPlayer(this);
+ pItem->SendCreateUpdateToPlayer(this);
}
}
@@ -11472,7 +11472,7 @@ void Player::DestroyItemCount(uint32 item, uint32 count, bool update, bool unequ
ItemRemovedQuestCheck(pItem->GetEntry(), count - remcount);
pItem->SetCount(pItem->GetCount() - count + remcount);
if (IsInWorld() & update)
- pItem->SendUpdateToPlayer( this );
+ pItem->SendCreateUpdateToPlayer( this );
pItem->SetState(ITEM_CHANGED, this);
return;
}
@@ -11500,7 +11500,7 @@ void Player::DestroyItemCount(uint32 item, uint32 count, bool update, bool unequ
ItemRemovedQuestCheck( pItem->GetEntry(), count - remcount );
pItem->SetCount( pItem->GetCount() - count + remcount );
if (IsInWorld() & update)
- pItem->SendUpdateToPlayer( this );
+ pItem->SendCreateUpdateToPlayer( this );
pItem->SetState(ITEM_CHANGED, this);
return;
}
@@ -11533,7 +11533,7 @@ void Player::DestroyItemCount(uint32 item, uint32 count, bool update, bool unequ
ItemRemovedQuestCheck( pItem->GetEntry(), count - remcount );
pItem->SetCount( pItem->GetCount() - count + remcount );
if (IsInWorld() && update)
- pItem->SendUpdateToPlayer( this );
+ pItem->SendCreateUpdateToPlayer( this );
pItem->SetState(ITEM_CHANGED, this);
return;
}
@@ -11566,7 +11566,7 @@ void Player::DestroyItemCount(uint32 item, uint32 count, bool update, bool unequ
ItemRemovedQuestCheck( pItem->GetEntry(), count - remcount );
pItem->SetCount( pItem->GetCount() - count + remcount );
if (IsInWorld() & update)
- pItem->SendUpdateToPlayer( this );
+ pItem->SendCreateUpdateToPlayer( this );
pItem->SetState(ITEM_CHANGED, this);
return;
}
@@ -11651,7 +11651,7 @@ void Player::DestroyItemCount( Item* pItem, uint32 &count, bool update )
pItem->SetCount( pItem->GetCount() - count );
count = 0;
if( IsInWorld() & update )
- pItem->SendUpdateToPlayer( this );
+ pItem->SendCreateUpdateToPlayer( this );
pItem->SetState(ITEM_CHANGED, this);
}
}
@@ -11716,7 +11716,7 @@ void Player::SplitItem( uint16 src, uint16 dst, uint32 count )
}
if( IsInWorld() )
- pSrcItem->SendUpdateToPlayer( this );
+ pSrcItem->SendCreateUpdateToPlayer( this );
pSrcItem->SetState(ITEM_CHANGED, this);
StoreItem( dest, pNewItem, true);
}
@@ -11736,7 +11736,7 @@ void Player::SplitItem( uint16 src, uint16 dst, uint32 count )
}
if( IsInWorld() )
- pSrcItem->SendUpdateToPlayer( this );
+ pSrcItem->SendCreateUpdateToPlayer( this );
pSrcItem->SetState(ITEM_CHANGED, this);
BankItem( dest, pNewItem, true);
}
@@ -11756,7 +11756,7 @@ void Player::SplitItem( uint16 src, uint16 dst, uint32 count )
}
if( IsInWorld() )
- pSrcItem->SendUpdateToPlayer( this );
+ pSrcItem->SendCreateUpdateToPlayer( this );
pSrcItem->SetState(ITEM_CHANGED, this);
EquipItem( dest, pNewItem, true);
AutoUnequipOffhandIfNeed();
@@ -11927,8 +11927,8 @@ void Player::SwapItem( uint16 src, uint16 dst )
pDstItem->SetState(ITEM_CHANGED, this);
if( IsInWorld() )
{
- pSrcItem->SendUpdateToPlayer( this );
- pDstItem->SendUpdateToPlayer( this );
+ pSrcItem->SendCreateUpdateToPlayer( this );
+ pDstItem->SendCreateUpdateToPlayer( this );
}
}
return;
@@ -17920,7 +17920,7 @@ void Player::HandleStealthedUnitsDetection()
{
if(!hasAtClient)
{
- (*i)->SendUpdateToPlayer(this);
+ (*i)->SendCreateUpdateToPlayer(this);
m_clientGUIDs.insert((*i)->GetGUID());
#ifdef MANGOS_DEBUG
@@ -19343,7 +19343,7 @@ void Player::UpdateVisibilityOf(WorldObject* target)
//if(target->isType(TYPEMASK_UNIT) && ((Unit*)target)->m_Vehicle)
// UpdateVisibilityOf(((Unit*)target)->m_Vehicle);
- target->SendUpdateToPlayer(this);
+ target->SendCreateUpdateToPlayer(this);
m_clientGUIDs.insert(target->GetGUID());
#ifdef TRINITY_DEBUG