mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 19:59:36 +00:00
Bellethrones can now kill witches properly
This commit is contained in:
1 parent
dfcaddab3c
commit
414249919e
1 file changed
+6
-1
@@ -15,6 +15,7 @@ import java.util.List;
|
||||
import net.minecraft.command.IEntitySelector;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.monster.EntityWitch;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.DamageSource;
|
||||
@@ -57,7 +58,11 @@ public class SubTileBellethorn extends SubTileFunctional {
|
||||
continue;
|
||||
|
||||
if(entity.hurtTime == 0 && mana >= manaToUse) {
|
||||
entity.attackEntityFrom(DamageSource.magic, 4);
|
||||
int dmg = 4;
|
||||
if(entity instanceof EntityWitch)
|
||||
dmg = 20;
|
||||
|
||||
entity.attackEntityFrom(DamageSource.magic, dmg);
|
||||
mana -= manaToUse;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user