From 1828762c3d6596f7ef239956f9d0312bb4d4f0e7 Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 12 Feb 2019 16:36:26 +0200 Subject: [PATCH] Added a subtle particle effect to disguised changelings --- .../java/com/minelittlepony/unicopia/spell/SpellDisguise.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/spell/SpellDisguise.java b/src/main/java/com/minelittlepony/unicopia/spell/SpellDisguise.java index bef7094a..bfbc4761 100644 --- a/src/main/java/com/minelittlepony/unicopia/spell/SpellDisguise.java +++ b/src/main/java/com/minelittlepony/unicopia/spell/SpellDisguise.java @@ -7,6 +7,7 @@ import javax.annotation.Nullable; import com.minelittlepony.unicopia.Race; import com.minelittlepony.unicopia.UClient; +import com.minelittlepony.unicopia.UParticles; import com.minelittlepony.unicopia.mixin.MixinEntity; import com.minelittlepony.unicopia.player.IFlyingPredicate; import com.minelittlepony.unicopia.player.IOwned; @@ -364,6 +365,9 @@ public class SpellDisguise extends AbstractSpell implements IFlyingPredicate, IP @Override public void render(ICaster source) { + if (source.getWorld().rand.nextInt(30) == 0) { + source.spawnParticles(UParticles.CHANGELING_MAGIC, 2); + } } @Override