v0.7.5: added a failsafe incase Tengu cannot use his shocker second

This commit is contained in:
Evan Debenham 2019-10-01 22:33:33 -04:00
parent 4f4bb1f8a6
commit c80af0852a

View File

@ -470,6 +470,11 @@ public class NewTengu extends Mob {
break; break;
case SHOCKER_ABILITY: case SHOCKER_ABILITY:
abilityUsed = throwShocker(NewTengu.this, enemy); abilityUsed = throwShocker(NewTengu.this, enemy);
//if Tengu cannot use his shocker ability second, use fire instead.
if (abilitiesUsed == 1 && !abilityUsed){
abilityToUse = FIRE_ABILITY;
abilityUsed = throwFire(NewTengu.this, enemy);
}
break; break;
} }
} }