mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-01-23 11:49:44 +01:00
Make sure to not use APs when player attacks unless the attack is actually going to happen.
git-svn-id: https://andors-trail.googlecode.com/svn/trunk@190 08aca716-68be-ccc6-4d58-36f5abd142ac
This commit is contained in:
@@ -42,7 +42,7 @@ public final class DebugInterface {
|
||||
/*,new DebugButton("dmg=1", new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View arg0) {
|
||||
world.model.player.traits.damagePotential.set(1, 1);
|
||||
world.model.player.traits.combatTraits.set(1, 1);
|
||||
mainActivity.updateStatus();
|
||||
mainActivity.showToast("DEBUG: damagePotential=1", Toast.LENGTH_SHORT);
|
||||
}
|
||||
|
||||
@@ -172,8 +172,8 @@ public final class CombatController implements VisualEffectCompletedCallback {
|
||||
private Monster currentlyAttackedMonster;
|
||||
private AttackResult lastAttackResult;
|
||||
private void executePlayerAttack() {
|
||||
if (!useAPs(model.player.combatTraits.attackCost)) return;
|
||||
if (context.effectController.isRunningVisualEffect()) return;
|
||||
if (!useAPs(model.player.combatTraits.attackCost)) return;
|
||||
final Monster target = model.uiSelections.selectedMonster;
|
||||
this.currentlyAttackedMonster = target;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user