Black holes shouldn't function when fired as a projectile

This commit is contained in:
Sollace 2021-12-26 20:35:43 +02:00
parent 878ed2563b
commit f402403964
2 changed files with 5 additions and 0 deletions

View file

@ -56,6 +56,10 @@ public class DarkVortexSpell extends AttractiveSpell {
@Override @Override
public boolean tick(Caster<?> source, Situation situation) { public boolean tick(Caster<?> source, Situation situation) {
if (situation == Situation.PROJECTILE) {
return false;
}
if (situation == Situation.BODY) { if (situation == Situation.BODY) {
return true; return true;
} }

View file

@ -74,6 +74,7 @@ public class ShieldSpell extends AbstractSpell {
@Override @Override
public boolean tick(Caster<?> source, Situation situation) { public boolean tick(Caster<?> source, Situation situation) {
if (source.isClient()) { if (source.isClient()) {
generateParticles(source); generateParticles(source);
} }