Search in sources :

Example 1 with ElectricShockDamageSource

use of chronosacaria.mcdw.damagesource.ElectricShockDamageSource in project MCDungeonsWeapons by chronosacaria.

the class AOEHelper method electrocute.

public static void electrocute(LivingEntity attacker, LivingEntity victim, float damageAmount) {
    createVisualLightningBoltOnEntity(victim);
    DamageSource electricShockDamageSource = new ElectricShockDamageSource(attacker).setUsesMagic();
    victim.damage(electricShockDamageSource, damageAmount);
}
Also used : ElectricShockDamageSource(chronosacaria.mcdw.damagesource.ElectricShockDamageSource) DamageSource(net.minecraft.entity.damage.DamageSource) ElectricShockDamageSource(chronosacaria.mcdw.damagesource.ElectricShockDamageSource)

Aggregations

ElectricShockDamageSource (chronosacaria.mcdw.damagesource.ElectricShockDamageSource)1 DamageSource (net.minecraft.entity.damage.DamageSource)1