mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 10:14:43 +02:00
Removed PVP requirement on Stab, added info about Stab to /swords
This commit is contained in:
@ -94,6 +94,12 @@ public class SwordsCommand extends SkillCommand {
|
||||
+ (hasEndurance ? LocaleLoader.getString("Perks.ActivationTime.Bonus", serratedStrikesLengthEndurance) : ""));
|
||||
}
|
||||
|
||||
if(canUseSubskill(player, SubSkillType.SWORDS_STAB))
|
||||
{
|
||||
messages.add(getStatMessage(SubSkillType.SWORDS_STAB,
|
||||
String.valueOf(UserManager.getPlayer(player).getSwordsManager().getStabDamage())));
|
||||
}
|
||||
|
||||
return messages;
|
||||
}
|
||||
|
||||
|
@ -84,11 +84,8 @@ public class SwordsManager extends SkillManager {
|
||||
}
|
||||
}
|
||||
|
||||
public double stabCheck(LivingEntity target)
|
||||
public double getStabDamage()
|
||||
{
|
||||
if(!(target instanceof Player))
|
||||
return 0;
|
||||
|
||||
int rank = RankUtils.getRank(getPlayer(), SubSkillType.SWORDS_STAB);
|
||||
|
||||
if(rank > 0)
|
||||
|
@ -21,7 +21,6 @@ import com.gmail.nossr50.util.*;
|
||||
import com.gmail.nossr50.util.player.NotificationManager;
|
||||
import com.gmail.nossr50.util.player.UserManager;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.*;
|
||||
@ -64,7 +63,7 @@ public final class CombatUtils {
|
||||
//Add Stab Damage
|
||||
if(swordsManager.canUseStab())
|
||||
{
|
||||
event.setDamage(swordsManager.stabCheck(target) + initialDamage);
|
||||
event.setDamage(swordsManager.getStabDamage(target) + initialDamage);
|
||||
}
|
||||
|
||||
if (swordsManager.canUseSerratedStrike()) {
|
||||
|
@ -405,7 +405,8 @@ Swords.SubSkill.SerratedStrikes.Stat=Serrated Strikes Length
|
||||
Swords.SubSkill.Rupture.Name=Rupture
|
||||
Swords.SubSkill.Rupture.Description=Apply a powerful bleed DoT
|
||||
Swords.SubSkill.Stab.Name=Stab
|
||||
Swords.SubSkill.Stab.Description=Adds {0} extra damage when attacking players.
|
||||
Swords.SubSkill.Stab.Description=Adds bonus damage to your attacks.
|
||||
Swords.SubSkill.Stab.Stat=Stab Damage
|
||||
Swords.SubSkill.Rupture.Stat=Rupture Chance
|
||||
Swords.SubSkill.Rupture.Stat.Extra=Rupture: [[GREEN]]{0} ticks [{1} DMG vs Player] [{2} DMG vs Mobs]
|
||||
Swords.Effect.4=Serrated Strikes Rupture+
|
||||
|
Reference in New Issue
Block a user