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);
}
Aggregations