Prevent Fallen Kanade from healing during GG fights

This commit is contained in:
David Vierra authored and GitHub committed 2018-09-14 01:15:31 -10:00
1 parent 80aea6f7be
commit 492e101acd
1 file changed
+1 -1
@@ -35,7 +35,7 @@ public class SubTileFallenKanade extends SubTileFunctional {
List<EntityPlayer> players = supertile.getWorld().getEntitiesWithinAABB(EntityPlayer.class, new AxisAlignedBB(supertile.getPos().add(-RANGE, -RANGE, -RANGE), supertile.getPos().add(RANGE + 1, RANGE + 1, RANGE + 1)));
for(EntityPlayer player : players) {
if(player.getActivePotionEffect(MobEffects.REGENERATION) == null && mana >= COST) {
player.addPotionEffect(new PotionEffect(MobEffects.REGENERATION, 60, 2, true, true));
player.addPotionEffect(new PotionEffect(MobEffects.REGENERATION, 59, 2, true, true));
mana -= COST;
did = true;
}