[8190] Update killing quest objectives base at creature_template KillCredit fields. Author: GriffonHeart
Note: for avoid double counting must be removed C++ scripts and EventAI scripts that do same thing in old way.
Signed-off-by: VladimirMangos <[email protected]>
Also implement KillCreditN field check at loading.
--HG--
branch : trunk
This commit is contained in:
@@ -33,7 +33,7 @@ void OutdoorPvPNA::HandleKillImpl(Player *plr, Unit * killed)
|
||||
{
|
||||
if(killed->GetTypeId() == TYPEID_PLAYER && plr->GetTeam() != ((Player*)killed)->GetTeam())
|
||||
{
|
||||
plr->KilledMonster(NA_CREDIT_MARKER,0); // 0 guid, btw it isn't even used in killedmonster function :S
|
||||
plr->KilledMonsterCredit(NA_CREDIT_MARKER,0); // 0 guid, btw it isn't even used in killedmonster function :S
|
||||
if(plr->GetTeam() == ALLIANCE)
|
||||
plr->CastSpell(plr,NA_KILL_TOKEN_ALLIANCE,true);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user