mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[9618] More use ObjectGuid in spell/etc code
This commit is contained in:
parent
21ff192866
commit
b658b25ff8
19 changed files with 117 additions and 122 deletions
|
|
@ -4889,18 +4889,18 @@ bool ChatHandler::HandleQuestComplete(const char* args)
|
|||
if(uint32 spell_id = pQuest->ReqSpell[i])
|
||||
{
|
||||
for(uint16 z = 0; z < creaturecount; ++z)
|
||||
player->CastedCreatureOrGO(creature,0,spell_id);
|
||||
player->CastedCreatureOrGO(creature, ObjectGuid::EmptyGuid, spell_id);
|
||||
}
|
||||
else if(creature > 0)
|
||||
{
|
||||
if(CreatureInfo const* cInfo = ObjectMgr::GetCreatureTemplate(creature))
|
||||
for(uint16 z = 0; z < creaturecount; ++z)
|
||||
player->KilledMonster(cInfo,0);
|
||||
player->KilledMonster(cInfo, ObjectGuid::EmptyGuid);
|
||||
}
|
||||
else if(creature < 0)
|
||||
{
|
||||
for(uint16 z = 0; z < creaturecount; ++z)
|
||||
player->CastedCreatureOrGO(-(creature),0,0);
|
||||
player->CastedCreatureOrGO(-creature, ObjectGuid::EmptyGuid, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue