From a7c81197a80d19e9d610dc1912dd5989987a32aa Mon Sep 17 00:00:00 2001 From: Sollace Date: Thu, 14 Feb 2019 14:37:47 +0200 Subject: [PATCH] Added some incentive for changelings to seek out players --- .../com/minelittlepony/unicopia/power/PowerFeed.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/power/PowerFeed.java b/src/main/java/com/minelittlepony/unicopia/power/PowerFeed.java index 99300dbd..44356f9d 100644 --- a/src/main/java/com/minelittlepony/unicopia/power/PowerFeed.java +++ b/src/main/java/com/minelittlepony/unicopia/power/PowerFeed.java @@ -141,6 +141,15 @@ public class PowerFeed implements IPower { living.addPotionEffect(new PotionEffect(MobEffects.WITHER, 20, 1)); } + if (living instanceof EntityPlayer) { + damage ++; + damage *= 1.6F; + + if (!changeling.isPotionActive(MobEffects.HEALTH_BOOST)) { + changeling.addPotionEffect(new PotionEffect(MobEffects.HEALTH_BOOST, 13000, 1)); + } + } + return damage; }