Added some incentive for changelings to seek out players

This commit is contained in:
Sollace 2019-02-14 14:37:47 +02:00
parent 35ffa71271
commit a7c81197a8

View file

@ -141,6 +141,15 @@ public class PowerFeed implements IPower<Hit> {
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;
}