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