Merge pull request #2739 from codewarrior0/patch-5

Prevent Fallen Kanade from healing during GG fights
This commit is contained in:
Vincent Lee authored and GitHub committed 2018-09-15 12:22:39 -05:00
commit 871463ea3f
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;
}