Permalink
Browse files

Made the character select him/herself as target

the first time he/she uses a self-targeted action.

Before, the character would choose the first in the party,
which isn't the common way of doing this.
  • Loading branch information...
1 parent 7db09ef commit 703f90271d878fef7334dc61d8153482750c6bf0 Yohann Ferreira committed Sep 15, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/modes/battle/battle_utils.cpp
@@ -639,12 +639,12 @@ bool BattleTarget::SetInitialTarget(BattleActor* user, GLOBAL_TARGET type) {
switch (type) {
case GLOBAL_TARGET_SELF_POINT:
case GLOBAL_TARGET_SELF:
- _actor = user;
- break;
case GLOBAL_TARGET_ALLY_POINT:
- case GLOBAL_TARGET_FOE_POINT:
case GLOBAL_TARGET_ALLY:
+ _actor = user;
+ break;
case GLOBAL_TARGET_ALLY_EVEN_DEAD:
+ case GLOBAL_TARGET_FOE_POINT:
case GLOBAL_TARGET_FOE:
_actor = target_party->at(0);
break;

0 comments on commit 703f902

Please sign in to comment.