summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2019-10-08 17:12:35 +0200 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2019-10-08 17:12:35 +0200 |
commit | 27e6fba1b383b6045c8ef42a4beea9903359b07d (patch) | |
tree | d52d3e02359a0765e58c824ff5971171db16f2c3 /src/battle/mechanic/condition | |
parent | 78b67f462da04dba446183d44d5afb03843f4dda (diff) |
...
Diffstat (limited to 'src/battle/mechanic/condition')
-rw-r--r-- | src/battle/mechanic/condition/blt_cond_heal.erl | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/battle/mechanic/condition/blt_cond_heal.erl b/src/battle/mechanic/condition/blt_cond_heal.erl index dd7a820..2479720 100644 --- a/src/battle/mechanic/condition/blt_cond_heal.erl +++ b/src/battle/mechanic/condition/blt_cond_heal.erl @@ -22,17 +22,20 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -spec apply ( - non_neg_integer(), - non_neg_integer(), - btl_battle:type() + btl_condition:type(), + btl_character_turn_update:type() ) -> { btl_condition:type(), [ataxic:basic()], - btl_character:type(), - [ataxic:basic()] + btl_character_turn_update:type() }. -apply (Condition, Character) -> - % TODO - {Condition, [], Character, []}. +apply (Condition, Update) -> + {TargetIX, Amount} = + case btl_condition:get_parameter(Condition) of + {StoredTargetIX, StoredAmount} -> {StoredTargetIX, StoredAmount}; + Other -> error({condition, parameter, Other}) + end, + % TODO + {Condition, [], Update}. |