Fix for errors.
This commit is contained in:
parent
ed33de5191
commit
2e74d95a1d
|
@ -29,7 +29,8 @@ public class Throw extends EffectExecutor {
|
|||
Vector vector;
|
||||
double magnitude = LeveledModifier.of(getSection().getString("magnitude")).get(level, 0.1, user, opponent);
|
||||
LivingEntity livingEntity = who() == USER ? user : opponent;
|
||||
LivingEntity relative = getSection().getString("relative-to").equalsIgnoreCase("opponent") ? opponent : user;
|
||||
String relativeToStr = getSection().getString("relative-to");
|
||||
LivingEntity relative = relativeToStr == null || relativeToStr.equalsIgnoreCase("user") ? user : opponent;
|
||||
|
||||
switch (getSection().getString("direction").toLowerCase()) {
|
||||
case "up":
|
||||
|
|
|
@ -21,7 +21,7 @@ effects:
|
|||
# The trigger that will fire this effect.
|
||||
trigger: STATIC_EFFECT
|
||||
# The potion type.
|
||||
potion-type: JUMP_BOOST
|
||||
potion-type: JUMP
|
||||
# The amplifier of the potion effect.
|
||||
amplifier: "{level}"
|
||||
|
|
@ -20,6 +20,8 @@ effects:
|
|||
POTION:
|
||||
# The trigger that will fire this effect.
|
||||
trigger: ATTACK_PLAYER_MELEE
|
||||
# What player should the effect be ran on: WEARER/OPPONENT.
|
||||
who: OPPONENT
|
||||
# The potion type.
|
||||
potion-type: POISON
|
||||
# The amplifier of the potion effect.
|
||||
|
@ -27,5 +29,4 @@ effects:
|
|||
# Duration of the potion effect.
|
||||
duration: "{level} * 2"
|
||||
# Chance of the effect firing.
|
||||
chance: "3 * {level}"
|
||||
|
||||
chance: "3 * {level}"
|
|
@ -20,6 +20,8 @@ effects:
|
|||
THROW:
|
||||
# The trigger that will fire this effect.
|
||||
trigger: "DEFENSE_PLAYER_MELEE, DEFENSE_PLAYER_RANGE"
|
||||
# In which
|
||||
relative-to: USER
|
||||
# The direction of the throw.
|
||||
direction: UP
|
||||
# Magnitude of the throw.
|
||||
|
|
Loading…
Reference in New Issue