summaryrefslogtreecommitdiff |
diff options
author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-10-22 21:36:18 +0200 |
---|---|---|
committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2019-10-22 21:36:18 +0200 |
commit | 240b60a2a747d073eb001dd92450fd19b91902e9 (patch) | |
tree | 68bc25f78f764da3edb25865a037833d20a548d8 /src/battle/mechanic | |
parent | 3391371f9979f374e5cb3243e1f71500c6115f90 (diff) |
...
Diffstat (limited to 'src/battle/mechanic')
-rw-r--r-- | src/battle/mechanic/action/btl_action_attack.erl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/battle/mechanic/action/btl_action_attack.erl b/src/battle/mechanic/action/btl_action_attack.erl index c6cd270..26e1190 100644 --- a/src/battle/mechanic/action/btl_action_attack.erl +++ b/src/battle/mechanic/action/btl_action_attack.erl @@ -296,7 +296,7 @@ handle_end_of_attack (Action, S0Update) -> ?CONDITION_TRIGGER_END_OF_OTHER_ATTACK, ?CONDITION_TRIGGER_END_OF_ANY_ATTACK, Action, - none, + {Action, none}, S0Update ), @@ -323,7 +323,7 @@ handle_end_of_attack (Action, S0Update) -> ?CONDITION_TRIGGER_MAY_HAVE_KILLED, ?CONDITION_TRIGGER_ANY_POSSIBLE_KILL, Action, - none, + {Action, none}, S2Update ), @@ -342,7 +342,7 @@ handle_end_of_attack (Action, S0Update) -> ?CONDITION_TRIGGER_MAY_HAVE_KILLED, ?CONDITION_TRIGGER_ANY_POSSIBLE_KILL, Action, - none, + {Action, none}, S3Update ), @@ -390,7 +390,7 @@ commit_luck_change (Character, NewLuck, S0Update) -> btl_player:ataxia_set_luck(NewLuck, S0Player), {S1Battle, BattleAtaxicUpdate} = - btl_battle:set_player + btl_battle:ataxia_set_player ( PlayerIX, S1Player, @@ -399,7 +399,7 @@ commit_luck_change (Character, NewLuck, S0Update) -> ), S1Update = - btl_character_turn_update:set_battle + btl_character_turn_update:ataxia_set_battle ( S1Battle, BattleAtaxicUpdate, @@ -574,7 +574,7 @@ commit_hit ), {S1Battle, BattleAtaxicUpdate1} = - btl_battle:set_character + btl_battle:ataxia_set_character ( TargetIX, S1Target, @@ -1112,8 +1112,8 @@ handle_hit (AttackCategory, S0Sequence, Action, S0Update) -> btl_character_turn_update:type() ) -> btl_character_turn_update:type(). -handle_attack_sequence ([], Action, Update) -> - {Action, Update}; +handle_attack_sequence ([], _Action, Update) -> + Update; handle_attack_sequence ([AttackCategory|S0NextElements], Action, S0Update) -> {S1NextElements, S1Update} = handle_hit(AttackCategory, S0NextElements, Action, S0Update), |