Replaced Warrior's Passive with Lifesteal, prevents issues with Golden apples
This commit is contained in:
parent
59d90e59fb
commit
9a3765ee2f
@ -8,7 +8,7 @@ import org.bukkit.inventory.ItemStack;
|
||||
import mineplex.core.common.util.C;
|
||||
|
||||
import nautilus.game.arcade.ArcadeManager;
|
||||
import nautilus.game.arcade.game.games.cakewars.kits.perk.PerkExtraHearts;
|
||||
import nautilus.game.arcade.game.games.cakewars.kits.perk.PerkLifeSteal;
|
||||
import nautilus.game.arcade.kit.KitAvailability;
|
||||
import nautilus.game.arcade.kit.Perk;
|
||||
import nautilus.game.arcade.kit.ProgressingKit;
|
||||
@ -20,12 +20,12 @@ public class KitCakeWarrior extends ProgressingKit
|
||||
{
|
||||
"Slay others to absorb their heart!",
|
||||
"",
|
||||
"Killing a player will give you " + C.cGreen + "0.5" + C.cRed + "❤"
|
||||
"Killing a player will give you " + C.cGreen + "3" + C.cRed + "❤"
|
||||
};
|
||||
|
||||
private static final Perk[] PERKS =
|
||||
{
|
||||
new PerkExtraHearts(1)
|
||||
new PerkLifeSteal(6)
|
||||
};
|
||||
|
||||
private static final ItemStack IN_HAND = new ItemStack(Material.IRON_SWORD);
|
||||
|
@ -4,16 +4,18 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.PlayerDeathEvent;
|
||||
|
||||
import mineplex.core.common.util.UtilPlayer;
|
||||
|
||||
import nautilus.game.arcade.kit.Perk;
|
||||
|
||||
public class PerkExtraHearts extends Perk
|
||||
public class PerkLifeSteal extends Perk
|
||||
{
|
||||
|
||||
private final double _increase;
|
||||
|
||||
public PerkExtraHearts(double increase)
|
||||
public PerkLifeSteal(double increase)
|
||||
{
|
||||
super("Extra Hearts");
|
||||
super("Lifesteal");
|
||||
|
||||
_increase = increase;
|
||||
}
|
||||
@ -25,8 +27,7 @@ public class PerkExtraHearts extends Perk
|
||||
|
||||
if (killer != null && hasPerk(killer))
|
||||
{
|
||||
killer.setMaxHealth(killer.getMaxHealth() + _increase);
|
||||
killer.setHealth(killer.getHealth() + _increase);
|
||||
UtilPlayer.health(killer, _increase);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user