mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
Bugfix: NPC Combat and Damage Application (#541)
This commit is contained in:
@@ -653,15 +653,16 @@ public class NpcCombat {
|
|||||||
if (damage > 0) {
|
if (damage > 0) {
|
||||||
c.getCombatAssistant().applyRecoilNPC(c, damage, i);
|
c.getCombatAssistant().applyRecoilNPC(c, damage, i);
|
||||||
}
|
}
|
||||||
if (c.playerLevel[GameConstants.HITPOINTS] - damage < 0) {
|
|
||||||
damage = c.playerLevel[GameConstants.HITPOINTS];
|
|
||||||
}
|
|
||||||
int difference = c.playerLevel[GameConstants.HITPOINTS] - damage;
|
|
||||||
if (c.getPlayerAssistant().savePlayer()) {
|
if (c.getPlayerAssistant().savePlayer()) {
|
||||||
c.getPlayerAssistant().handleROL();
|
c.getPlayerAssistant().handleROL();
|
||||||
} else if (difference <= c.getLevelForXP(c.playerXP[GameConstants.HITPOINTS]) / 10 && difference > 0) {
|
|
||||||
c.appendRedemption();
|
|
||||||
} else {
|
} else {
|
||||||
|
int difference = c.playerLevel[GameConstants.HITPOINTS] - damage;
|
||||||
|
if (difference <= c.getLevelForXP(c.playerXP[GameConstants.HITPOINTS]) / 10 && difference > 0) {
|
||||||
|
c.appendRedemption();
|
||||||
|
}
|
||||||
|
if (c.playerLevel[GameConstants.HITPOINTS] - damage < 0) {
|
||||||
|
damage = c.playerLevel[GameConstants.HITPOINTS];
|
||||||
|
}
|
||||||
NpcHandler.handleSpecialEffects(c, i, damage);
|
NpcHandler.handleSpecialEffects(c, i, damage);
|
||||||
c.logoutDelay = System.currentTimeMillis(); // logout delay
|
c.logoutDelay = System.currentTimeMillis(); // logout delay
|
||||||
c.handleHitMask(damage);
|
c.handleHitMask(damage);
|
||||||
|
|||||||
Reference in New Issue
Block a user