v0.7.5: added a failsafe incase Tengu cannot use his shocker second
This commit is contained in:
parent
4f4bb1f8a6
commit
c80af0852a
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user