use of com.ebicep.warlords.abilties.Soulbinding in project Warlords by ebicep.
the class CooldownManager method getNumberOfBoundPlayersLink.
public int getNumberOfBoundPlayersLink(WarlordsPlayer warlordsPlayer) {
int counter = 0;
for (Soulbinding soulbinding : new CooldownFilter<>(this, RegularCooldown.class).filterCooldownClassAndMapToObjectsOfClass(Soulbinding.class).collect(Collectors.toList())) {
if (soulbinding.hasBoundPlayerLink(warlordsPlayer)) {
counter++;
}
}
incrementCooldown(new RegularCooldown<Void>("KB Resistance", "KB", null, null, this.warlordsPlayer, CooldownTypes.BUFF, cooldownManager -> {
}, counter * 20), (int) (counter * 1.2 * 20), (int) (3.6 * 20));
return counter;
}
Aggregations