v2.2.0: crystal guardians no longer show heal particles out of FOV
This commit is contained in:
+3
-1
@@ -69,7 +69,9 @@ public class CrystalGuardian extends Mob{
|
|||||||
if (recovering){
|
if (recovering){
|
||||||
throwItems();
|
throwItems();
|
||||||
HP = Math.min(HT, HP+5);
|
HP = Math.min(HT, HP+5);
|
||||||
sprite.emitter().burst(Speck.factory(Speck.HEALING), 1);
|
if (Dungeon.level.heroFOV[pos]) {
|
||||||
|
sprite.emitter().burst(Speck.factory(Speck.HEALING), 1);
|
||||||
|
}
|
||||||
if (HP == HT){
|
if (HP == HT){
|
||||||
recovering = false;
|
recovering = false;
|
||||||
if (sprite instanceof CrystalGuardianSprite) ((CrystalGuardianSprite) sprite).endCrumple();
|
if (sprite instanceof CrystalGuardianSprite) ((CrystalGuardianSprite) sprite).endCrumple();
|
||||||
|
|||||||
Reference in New Issue
Block a user