Skip to content

Commit 0390b2b

Browse files
committed
ignore
# 26f3350
1 parent 9f6f0f6 commit 0390b2b

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

src/handling/channel/handler/PlayerHandler.java

+11-13
Original file line numberDiff line numberDiff line change
@@ -667,20 +667,19 @@ public static final void closeRangeAttack(final SeekableLittleEndianAccessor sle
667667
}
668668
final AttackInfo attack = DamageParse.Modify_AttackCrit(DamageParse.parseDmgM(slea, chr), chr, 1);
669669
final boolean mirror = chr.getBuffedValue(MapleBuffStat.MIRROR_IMAGE) != null;
670-
Integer 夜行者隐身 = chr.getBuffedValue(MapleBuffStat.DARKSIGHT);
670+
final boolean hasCygnusDarkSightState = chr.getBuffSource(MapleBuffStat.DARKSIGHT) == 14001003;
671671
double maxdamage = chr.getStat().getCurrentMaxBaseDamage();
672672
int attackCount = (chr.getJob() >= 430 && chr.getJob() <= 434 ? 2 : 1), skillLevel = 0;
673673
MapleStatEffect effect = null;
674674
ISkill skill = null;
675675
if ((attack.skill == 21100004) || (attack.skill == 21100005) || (attack.skill == 21110003) || (attack.skill == 21110004) || (attack.skill == 21120006) || (attack.skill == 21120007)) {
676676
chr.setCombo((byte) 1);
677677
}
678-
if (夜行者隐身 != null) {
679-
if (attack.skill != 14100005) {
680-
chr.dropMessage("夜行者隐身状态除非使用驱逐技能。其他技能均无效!");
681-
return;
682-
}
678+
if (hasCygnusDarkSightState && attack.skill != 14100005) {
679+
chr.dropMessage("夜行者隐身状态除非使用驱逐技能。其他技能均无效!");
680+
return;
683681
}
682+
684683
if (attack.skill != 0) {
685684
skill = SkillFactory.getSkill(GameConstants.getLinkedAranSkill(attack.skill));
686685
skillLevel = chr.getSkillLevel(skill);
@@ -815,7 +814,7 @@ public static final void rangedAttack(final SeekableLittleEndianAccessor slea, f
815814
return;
816815
}
817816
final AttackInfo attack = DamageParse.Modify_AttackCrit(DamageParse.parseDmgR(slea, chr), chr, 2);
818-
boolean hasCygnusDarkSightState = chr.getBuffSource(MapleBuffStat.DARKSIGHT) == 14001003;
817+
final boolean hasCygnusDarkSightState = chr.getBuffSource(MapleBuffStat.DARKSIGHT) == 14001003;
819818
int bulletCount = 1, skillLevel = 0;
820819
MapleStatEffect effect = null;
821820
ISkill skill = null;
@@ -964,20 +963,19 @@ public static final void MagicDamage(final SeekableLittleEndianAccessor slea, fi
964963
chr.getCheatTracker().registerOffense(CheatingOffense.人物死亡攻击);
965964
return;
966965
}
967-
Integer 夜行者隐身 = chr.getBuffedValue(MapleBuffStat.DARKSIGHT);
966+
final boolean hasCygnusDarkSightState = chr.getBuffSource(MapleBuffStat.DARKSIGHT) == 14001003;
968967
final AttackInfo attack = DamageParse.Modify_AttackCrit(DamageParse.parseDmgMa(slea, chr), chr, 3);
969968
final ISkill skill = SkillFactory.getSkill(GameConstants.getLinkedAranSkill(attack.skill));
970969
final int skillLevel = chr.getSkillLevel(skill);
971970
final MapleStatEffect effect = attack.getAttackEffect(chr, skillLevel, skill);
972971
if (effect == null) {
973972
return;
974973
}
975-
if (夜行者隐身 != null) {
976-
if (attack.skill != 14100005) {
977-
chr.dropMessage("夜行者隐身状态除非使用驱逐技能。其他技能均无效!");
978-
return;
979-
}
974+
if (hasCygnusDarkSightState && attack.skill != 14100005) {
975+
chr.dropMessage("夜行者隐身状态除非使用驱逐技能。其他技能均无效!");
976+
return;
980977
}
978+
981979
if (effect.getCooldown() > 0 && !chr.isGM()) {
982980
if (chr.skillisCooling(attack.skill)) {
983981
c.getSession().write(MaplePacketCreator.enableActions());

0 commit comments

Comments
 (0)