Fixed increasePkKillsAndKarma method not setting karma.
This commit is contained in:
parent
2e3281b3db
commit
9522f4fefe
@ -6106,6 +6106,7 @@ public class Player extends Playable
|
||||
}
|
||||
|
||||
// Add karma to attacker and increase its PK counter
|
||||
setKarma(newKarma);
|
||||
setPkKills(getPkKills() + 1);
|
||||
|
||||
if (Config.PVP_PK_TITLE)
|
||||
@ -6119,6 +6120,9 @@ public class Player extends Playable
|
||||
|
||||
// Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
|
||||
sendPacket(new UserInfo(this));
|
||||
|
||||
// Prevent character get stuck.
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -6245,6 +6245,7 @@ public class Player extends Playable
|
||||
}
|
||||
|
||||
// Add karma to attacker and increase its PK counter
|
||||
setKarma(newKarma);
|
||||
setPkKills(getPkKills() + 1);
|
||||
|
||||
if (Config.PVP_PK_TITLE)
|
||||
@ -6258,6 +6259,9 @@ public class Player extends Playable
|
||||
|
||||
// Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
|
||||
sendPacket(new UserInfo(this));
|
||||
|
||||
// Prevent character get stuck.
|
||||
sendPacket(ActionFailed.STATIC_PACKET);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user