mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[10610] Renamed some functions from the Creature class
Also other classes have been affected, due to the use of search&replace. This will probably break some patches and 3rd party libraries, so make sure to update them if required. Thanks to Phille for the original idea and patch!
This commit is contained in:
parent
d090bce461
commit
61102e3b16
50 changed files with 305 additions and 305 deletions
|
|
@ -128,7 +128,7 @@ void WorldSession::HandleQuestgiverAcceptQuestOpcode( WorldPacket & recv_data )
|
|||
|
||||
// no or incorrect quest giver
|
||||
if(!pObject
|
||||
|| (pObject->GetTypeId()!=TYPEID_PLAYER && !pObject->hasQuest(quest))
|
||||
|| (pObject->GetTypeId()!=TYPEID_PLAYER && !pObject->HasQuest(quest))
|
||||
|| (pObject->GetTypeId()==TYPEID_PLAYER && !((Player*)pObject)->CanShareQuest(quest))
|
||||
)
|
||||
{
|
||||
|
|
@ -243,7 +243,7 @@ void WorldSession::HandleQuestgiverQueryQuestOpcode( WorldPacket & recv_data )
|
|||
|
||||
// Verify that the guid is valid and is a questgiver or involved in the requested quest
|
||||
Object* pObject = _player->GetObjectByTypeMask(guid, TYPEMASK_CREATURE_GAMEOBJECT_OR_ITEM);
|
||||
if(!pObject||!pObject->hasQuest(quest) && !pObject->hasInvolvedQuest(quest))
|
||||
if(!pObject||!pObject->HasQuest(quest) && !pObject->HasInvolvedQuest(quest))
|
||||
{
|
||||
_player->PlayerTalkClass->CloseGossip();
|
||||
return;
|
||||
|
|
@ -290,7 +290,7 @@ void WorldSession::HandleQuestgiverChooseRewardOpcode( WorldPacket & recv_data )
|
|||
if(!pObject)
|
||||
return;
|
||||
|
||||
if(!pObject->hasInvolvedQuest(quest))
|
||||
if(!pObject->HasInvolvedQuest(quest))
|
||||
return;
|
||||
|
||||
Quest const *pQuest = sObjectMgr.GetQuestTemplate(quest);
|
||||
|
|
@ -337,7 +337,7 @@ void WorldSession::HandleQuestgiverRequestRewardOpcode( WorldPacket & recv_data
|
|||
DEBUG_LOG( "WORLD: Received CMSG_QUESTGIVER_REQUEST_REWARD npc = %u, quest = %u",uint32(GUID_LOPART(guid)),quest );
|
||||
|
||||
Object* pObject = _player->GetObjectByTypeMask(guid, TYPEMASK_CREATURE_OR_GAMEOBJECT);
|
||||
if(!pObject||!pObject->hasInvolvedQuest(quest))
|
||||
if(!pObject||!pObject->HasInvolvedQuest(quest))
|
||||
return;
|
||||
|
||||
if ( _player->CanCompleteQuest( quest ) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue