mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-22 12:59:54 +00:00
Hoard demons no longer 1HKO'd by dagger
This commit is contained in:
1 parent
574f43010d
commit
22afbcbd11
18 files changed
+130
-51
No files matched your search
@@ -23,6 +23,7 @@ import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.world.World;
|
||||
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
|
||||
import WayofTime.alchemicalWizardry.common.IDemon;
|
||||
import WayofTime.alchemicalWizardry.common.demonVillage.demonHoard.demon.IHoardDemon;
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
||||
import WayofTime.alchemicalWizardry.common.tileEntity.TEAltar;
|
||||
|
||||
@@ -60,6 +61,11 @@ public class DaggerOfSacrifice extends EnergyItems
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if(par2EntityLivingBase instanceof IHoardDemon)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (par2EntityLivingBase.isChild() || par2EntityLivingBase instanceof EntityWither || par2EntityLivingBase instanceof EntityDragon || par2EntityLivingBase instanceof EntityPlayer || par2EntityLivingBase instanceof IBossDisplayData)
|
||||
{
|
||||
@@ -75,7 +81,6 @@ public class DaggerOfSacrifice extends EnergyItems
|
||||
|
||||
if(par2EntityLivingBase instanceof IDemon)
|
||||
{
|
||||
System.out.println("Demon");
|
||||
((IDemon)par2EntityLivingBase).setDropCrystal(false);
|
||||
this.findAndNotifyAltarOfDemon(world, par2EntityLivingBase);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user