v3.0.0: fixed crashes with bad refs in hallowed ground furrow tracker

This commit is contained in:
Evan Debenham
2024-12-11 18:55:41 -05:00
parent bc49f75809
commit 056e9ab95e

View File

@@ -1909,9 +1909,9 @@ public class Hero extends Char {
}
}
if (buff(HallowedGround.HallowedFurrowTracker.class) != null){
buff(ElementalStrike.ElementalStrikeFurrowCounter.class).countDown(percent*5f);
if (buff(ElementalStrike.ElementalStrikeFurrowCounter.class).count() <= 0){
buff(ElementalStrike.ElementalStrikeFurrowCounter.class).detach();
buff(HallowedGround.HallowedFurrowTracker.class).countDown(percent*5f);
if (buff(HallowedGround.HallowedFurrowTracker.class).count() <= 0){
buff(HallowedGround.HallowedFurrowTracker.class).detach();
}
}
}