From 6b7193e0f4df8d4dc2fafac963c06a24a1b94acb Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 1 Feb 2019 10:40:17 +0200 Subject: [PATCH] Make it possible to escape a vortex --- .../java/com/minelittlepony/unicopia/spell/SpellVortex.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/spell/SpellVortex.java b/src/main/java/com/minelittlepony/unicopia/spell/SpellVortex.java index 97cf2464..2925e27a 100644 --- a/src/main/java/com/minelittlepony/unicopia/spell/SpellVortex.java +++ b/src/main/java/com/minelittlepony/unicopia/spell/SpellVortex.java @@ -37,7 +37,7 @@ public class SpellVortex extends SpellShield { applyForce(pos, target, -force, 0); - float maxVel = source.getAffinity() != SpellAffinity.BAD ? 1.6f : 1; + float maxVel = source.getAffinity() == SpellAffinity.BAD ? 1 : 1.6f; if (target.motionX > maxVel) target.motionX = maxVel; if (target.motionX < -maxVel) target.motionX = -maxVel; @@ -45,5 +45,9 @@ public class SpellVortex extends SpellShield { if (target.motionY < -maxVel) target.motionY = -maxVel; if (target.motionZ > maxVel) target.motionZ = maxVel; if (target.motionZ < -maxVel) target.motionZ = -maxVel; + + if (distance < 0.5) { + target.motionZ += maxVel * 2; + } } }