mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Update SwordsCommand.java
This commit is contained in:
parent
c146384227
commit
9be7c2af3c
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user