use of com.skelril.skree.content.zone.group.freakyfour.FreakyFourInstance in project Skree by Skelril.
the class FreakyFourBossDeath method apply.
@Override
public Optional<Instruction<UnbindCondition, Boss<Living, ZoneBossDetail<FreakyFourInstance>>>> apply(UnbindCondition unbindCondition, Boss<Living, ZoneBossDetail<FreakyFourInstance>> boss) {
FreakyFourInstance inst = boss.getDetail().getZone();
inst.bossDied(inst.getCurrentboss().get());
return Optional.empty();
}
use of com.skelril.skree.content.zone.group.freakyfour.FreakyFourInstance in project Skree by Skelril.
the class CharlotteMinionManager method handleDamage.
private void handleDamage() {
List<Instruction<DamageCondition, Boss<CaveSpider, ZoneBossDetail<FreakyFourInstance>>>> damageProcessor = getDamageProcessor();
damageProcessor.add((condition, boss) -> {
FreakyFourInstance inst = boss.getDetail().getZone();
Optional<Living> optBossEnt = inst.getBoss(FreakyFourBoss.CHARLOTTE);
if (optBossEnt.isPresent()) {
EntityHealthUtil.heal(optBossEnt.get(), condition.getEvent().getBaseDamage());
}
return Optional.empty();
});
}
Aggregations