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