mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Release!
This commit is contained in:
1 parent
ca72710c84
commit
7e7972f83e
35 files changed
+253
-71
No files matched your search
@@ -239,18 +239,21 @@ public class AbilityHelper
|
||||
int attack = (int) ((tags.getCompoundTag("InfiTool").getInteger("Attack") + damageModifier) * bonusDamage);
|
||||
|
||||
if (player instanceof EntityPlayer)
|
||||
mob.attackEntityFrom(DamageSource.causePlayerDamage((EntityPlayer) player), attack);
|
||||
if (mob.attackEntityFrom(DamageSource.causePlayerDamage((EntityPlayer) player), attack))
|
||||
{
|
||||
damageTool(stack, 1, tags, player, false);
|
||||
if (tags.getCompoundTag("InfiTool").getBoolean("Necrotic"))
|
||||
player.heal(1);
|
||||
}
|
||||
else
|
||||
mob.attackEntityFrom(DamageSource.causeMobDamage(player), attack);
|
||||
}
|
||||
//if (mob.hurtResistantTime <= 0)
|
||||
damageTool(stack, 1, tags, player, false);
|
||||
if (tags.getCompoundTag("InfiTool").hasKey("Fiery"))
|
||||
{
|
||||
System.out.println("Fiery: "+tags.getInteger("Fiery"));
|
||||
mob.setFire(tags.getCompoundTag("InfiTool").getInteger("Fiery")/5+1);
|
||||
}
|
||||
|
||||
if (tags.getCompoundTag("InfiTool").hasKey("Fiery"))
|
||||
{
|
||||
System.out.println("Fiery: "+tags.getInteger("Fiery"));
|
||||
mob.setFire(tags.getCompoundTag("InfiTool").getInteger("Fiery")/5+1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static DamageSource causePiercingDamage (EntityLiving mob)
|
||||
|
||||
Reference in new issue
Block a user