Fixed increasePkKillsAndKarma method not setting karma.

This commit is contained in:
MobiusDevelopment 2022-03-07 23:07:55 +00:00
parent 2e3281b3db
commit 9522f4fefe
2 changed files with 8 additions and 0 deletions

View File

@ -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);
}
/**

View File

@ -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);
}
/**