mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Fix killing blows not giving lifesteal #1436
This commit is contained in:
1 parent
c34ab3db63
commit
a544071e0e
1 file changed
+2
-1
@@ -112,6 +112,7 @@ public class AbilityHelper
|
||||
damage = 1;
|
||||
}
|
||||
boolean causedDamage = false;
|
||||
boolean isAlive = entity.isEntityAlive();
|
||||
if (tool.pierceArmor() && !broken)
|
||||
{
|
||||
if (player instanceof EntityPlayer)
|
||||
@@ -135,7 +136,7 @@ public class AbilityHelper
|
||||
tool.onEntityDamaged(player.worldObj, player, entity);
|
||||
if (!necroticUHS || (entity instanceof IMob && entity instanceof EntityLivingBase && ((EntityLivingBase) entity).getHealth() <= 0))
|
||||
{
|
||||
if(entity.isEntityAlive()) {
|
||||
if(isAlive) {
|
||||
int drain = toolTags.getInteger("Necrotic") * 2;
|
||||
if (drain > 0)
|
||||
player.heal(random.nextInt(drain + 1));
|
||||
|
||||
Reference in new issue
Block a user