mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-16 01:55:15 +00:00
Merge pull request #2739 from codewarrior0/patch-5
Prevent Fallen Kanade from healing during GG fights
This commit is contained in:
1 file changed
+1
-1
+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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user