v2.3.0: adjust geomancer ability cooldown

This commit is contained in:
Evan Debenham
2023-12-01 17:17:13 -05:00
parent 6d27ab8025
commit 4a6b65a567

View File

@@ -250,6 +250,8 @@ public class GnollGeomancer extends Mob {
super.damage(dmg, src);
abilityCooldown -= dmg/15f;
int newBracket = HP / hpBracket;
if (newBracket == 3) newBracket--; //full HP isn't its own bracket
@@ -509,6 +511,14 @@ public class GnollGeomancer extends Mob {
} else {
enemySeen = true;
//use abilities more frequently on the hero's initial approach
// but only if they aren't stunned, to prevent stunlocking
if (Dungeon.level.distance(pos, enemy.pos) > 2
&& buff(RockArmor.class) != null
&& enemy.buff(Paralysis.class) == null){
abilityCooldown -= 1f;
}
if (abilityCooldown-- <= 0){
boolean targetNextToBarricade = false;