use of jackiecrazy.wardance.api.CombatDamageSource in project WarDance by Jackiecrazy.
the class Feint method spiritBomb.
@SubscribeEvent()
public static void spiritBomb(LivingHurtEvent e) {
LivingEntity uke = e.getEntityLiving();
Marks.getCap(uke).getActiveMark(WarSkills.SPIRIT_RESONANCE.get()).ifPresent((a) -> {
if (a.isCondition() && e.getSource() instanceof CombatDamageSource && ((CombatDamageSource) e.getSource()).canProcSkillEffects()) {
e.setAmount(e.getAmount() + 2);
}
a.flagCondition(false);
});
}
Aggregations