65 디스펠 후 피격 고치기 강의~!
PlayerHandler.java 에서
public static final void TakeDamage 검색
if (type != -1 && damage > 0) { // Bump damage
final MobAttackInfo attackInfo = attacker.getStats().getMobAttack(type);
if (attackInfo != null) {
if (attackInfo.isDeadlyAttack()) {
isDeadlyAttack = true;
mpattack = stats.getMp() - 1;
} else {
mpattack += attackInfo.getMpBurn();
}
final MobSkill skill = MobSkillFactory.getMobSkill(attackInfo.getDiseaseSkill(), attackInfo.getDiseaseLevel());
if (skill != null && (damage == -1 || damage > 0)) {
skill.applyEffect(chr, attacker, false, 0);
}
-> 삭제
attacker.setMp(attacker.getMp() - attackInfo.getMpCon());
}
}
///////////////////
byte offset = 0; 밑에
if (type != -1 && damage > 0) {
final MobAttackInfo attackInfo = attacker.getStats().getMobAttack(type);
final MobSkill skill = MobSkillFactory.getMobSkill(attackInfo.getDiseaseSkill(), attackInfo.getDiseaseLevel());
if (skill != null && (damage == -1 || damage > 0)) {
skill.applyEffect(chr, attacker, false, 0);
}
}
-> 보라색 부분 붙여넣기
c.getSession().write ~~
이렇게 고치시면
디스펠 후 피격으로 인한 매직가드 미적용 끔살을 막을 수 있습니다.

케이몰스 님의 최근 댓글
이거 아르카나 아니고 51 노스텔지아 아님? 2022 07.30 내 3000포인트 ㅠ 2022 07.30 ㄳ 2022 07.28 ㄳ 2018 02.11