mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8190] Update killing quest objectives base at creature_template KillCredit fields.
Note: for avoid double counting must be removed C++ scripts and EventAI scripts that do same thing in old way. Signed-off-by: VladimirMangos <vladimir@getmangos.com> Also implement KillCreditN field check at loading.
This commit is contained in:
parent
ad67efefad
commit
cbfbd13146
11 changed files with 49 additions and 17 deletions
|
|
@ -4835,8 +4835,9 @@ bool ChatHandler::HandleQuestComplete(const char* args)
|
|||
}
|
||||
else if(creature > 0)
|
||||
{
|
||||
for(uint16 z = 0; z < creaturecount; ++z)
|
||||
player->KilledMonster(creature,0);
|
||||
if(CreatureInfo const* cInfo = objmgr.GetCreatureTemplate(creature))
|
||||
for(uint16 z = 0; z < creaturecount; ++z)
|
||||
player->KilledMonster(cInfo,0);
|
||||
}
|
||||
else if(creature < 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue