Update SwordsCommand.java

This commit is contained in:
Oaksworth 2019-01-23 19:35:15 -02:00 committed by GitHub
parent c146384227
commit 9be7c2af3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,11 +34,11 @@ public class SwordsCommand extends SkillCommand {
@Override @Override
protected void dataCalculations(Player player, float skillValue, boolean isLucky) { protected void dataCalculations(Player player, float skillValue, boolean isLucky) {
// SERRATED STRIKES // SWORDS_COUNTER_ATTACK
if (canSerratedStrike) { if (canCounter) {
String[] serratedStrikesStrings = calculateLengthDisplayValues(player, skillValue); String[] counterStrings = calculateAbilityDisplayValues(skillValue, SubSkillType.SWORDS_COUNTER_ATTACK, isLucky);
serratedStrikesLength = serratedStrikesStrings[0]; counterChance = counterStrings[0];
serratedStrikesLengthEndurance = serratedStrikesStrings[1]; counterChanceLucky = counterStrings[1];
} }
// SWORDS_RUPTURE // SWORDS_RUPTURE
@ -50,11 +50,11 @@ public class SwordsCommand extends SkillCommand {
bleedChanceLucky = bleedStrings[1]; bleedChanceLucky = bleedStrings[1];
} }
// SWORDS_COUNTER_ATTACK // SERRATED STRIKES
if (canCounter) { if (canSerratedStrike) {
String[] counterStrings = calculateAbilityDisplayValues(skillValue, SubSkillType.SWORDS_COUNTER_ATTACK, isLucky); String[] serratedStrikesStrings = calculateLengthDisplayValues(player, skillValue);
counterChance = counterStrings[0]; serratedStrikesLength = serratedStrikesStrings[0];
counterChanceLucky = counterStrings[1]; serratedStrikesLengthEndurance = serratedStrikesStrings[1];
} }
} }