// Path: src/main/java/matgm50/twarden/util/DamageSourceWarden.java
// public class DamageSourceWarden extends EntityDamageSource {
// 
//     public DamageSourceWarden(String par1Str, Entity par2Entity) {
// 
//         super(par1Str, par2Entity);
//         setDamageBypassesArmor();
//         setDamageIsAbsolute();
// 
//     }
// }


import matgm50.twarden.util.DamageSourceWarden;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.Potion;
import net.minecraft.util.DamageSource;
import net.minecraft.world.World;
import net.minecraftforge.event.entity.living.LivingHurtEvent;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.entities.ITaintedMob;
import thaumcraft.common.config.Config;
import thaumcraft.common.entities.monster.EntityEldritchGuardian;
package matgm50.twarden.util.wardenic.upgrade;


/**
 * Created by MasterAbdoTGM50 on 7/16/2014.
 */

public class WardenicUpgradeWarden extends WardenicUpgrade {

    public WardenicUpgradeWarden(Aspect aspect) {super(aspect);}

    @Override
    public void onAttack(ItemStack stack, EntityPlayer player, Entity entity) {

        super.onAttack(stack, player, entity);

        if(entity instanceof EntityEldritchGuardian || entity instanceof ITaintedMob) {

// Path: src/main/java/matgm50/twarden/util/DamageSourceWarden.java
// public class DamageSourceWarden extends EntityDamageSource {
// 
//     public DamageSourceWarden(String par1Str, Entity par2Entity) {
// 
//         super(par1Str, par2Entity);
//         setDamageBypassesArmor();
//         setDamageIsAbsolute();
// 
//     }
// }


// Path: src/main/java/matgm50/twarden/util/wardenic/upgrade/WardenicUpgradeWarden.java
import matgm50.twarden.util.DamageSourceWarden;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.Potion;
import net.minecraft.util.DamageSource;
import net.minecraft.world.World;
import net.minecraftforge.event.entity.living.LivingHurtEvent;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.entities.ITaintedMob;
import thaumcraft.common.config.Config;
import thaumcraft.common.entities.monster.EntityEldritchGuardian;

package matgm50.twarden.util.wardenic.upgrade;


/**
 * Created by MasterAbdoTGM50 on 7/16/2014.
 */

public class WardenicUpgradeWarden extends WardenicUpgrade {

    public WardenicUpgradeWarden(Aspect aspect) {super(aspect);}

    @Override
    public void onAttack(ItemStack stack, EntityPlayer player, Entity entity) {

        super.onAttack(stack, player, entity);

        if(entity instanceof EntityEldritchGuardian || entity instanceof ITaintedMob) {

            DamageSource damageSource = new DamageSourceWarden("warden", player);