카카오기반 캐릭터가 피가 0 일때 안 죽는 현상 해결법
다른 직업군에서 안 죽는 현상 있더라요..
.
MapleCharacter 에서 playerDead를 검색를 합니다
if (death > 0) {//이걸 찾습니다.
death -= 1;
}
death -= 1;
}
if (death > 0) {
death -= 1;
}이걸 지우세요.
death -= 1;
}이걸 지우세요.
MapleCharacterStat 에서
public final boolean setHp(long newhp, boolean silent) { 검색합니다
} else if (chra.getSkillLevel(1320016) > 0 || chra.getSkillLevel(1320019) > 0 && !chra.reincooling()) {
this.hp = chra.getStat().getMaxHp();
this.mp = chra.getStat().getMaxMp();
chra.giveBuff(1320019, chra.getSkillLevel(1320016) > 0 ? chra.getSkillLevel(1320016) : chra.getSkillLevel(1320019));
chra.setReinCooling(true);
Timer.MapTimer.getInstance().schedule(new Runnable() {
@Override
public final void run() {
chra.setReinCooling(false);
}
}, 360000); // 있으신분은 밑에 추가하세요
if (chra.getDeath() > 1 || chra.getParty().getDeath() > 1) {
this.hp = chra.getStat().getMaxHp();
this.mp = chra.getStat().getMaxMp();
if (chra.getDeath() > 1) {
chra.setDeathCount(chra.getDeath() - 1);
chra.send(MainPacketCreator.getDeathCount(chra.getDeath()));
} else {
chra.getParty().setDeathCount(chra.getParty().getDeath() - 1);
chra.sendParty(MainPacketCreator.getDeathCount(chra.getParty().getDeath()));
}
} else {
this.hp = chra.getStat().getMaxHp();
this.mp = chra.getStat().getMaxMp();
chra.giveBuff(1320019, chra.getSkillLevel(1320016) > 0 ? chra.getSkillLevel(1320016) : chra.getSkillLevel(1320019));
chra.setReinCooling(true);
Timer.MapTimer.getInstance().schedule(new Runnable() {
@Override
public final void run() {
chra.setReinCooling(false);
}
}, 360000); // 있으신분은 밑에 추가하세요
if (chra.getDeath() > 1 || chra.getParty().getDeath() > 1) {
this.hp = chra.getStat().getMaxHp();
this.mp = chra.getStat().getMaxMp();
if (chra.getDeath() > 1) {
chra.setDeathCount(chra.getDeath() - 1);
chra.send(MainPacketCreator.getDeathCount(chra.getDeath()));
} else {
chra.getParty().setDeathCount(chra.getParty().getDeath() - 1);
chra.sendParty(MainPacketCreator.getDeathCount(chra.getParty().getDeath()));
}
} else {
chra.playerDead();
}

cksals33 님의 최근 댓글
감사용 2017 04.03