From a544420cb26bf8e9f21c3034953d3b02add54f78 Mon Sep 17 00:00:00 2001 From: nsensfel Date: Wed, 30 Oct 2019 18:12:49 +0100 Subject: Conditions are difficult to implement... --- src/battle/mechanic/condition/btl_cond_heal.erl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/battle/mechanic') diff --git a/src/battle/mechanic/condition/btl_cond_heal.erl b/src/battle/mechanic/condition/btl_cond_heal.erl index f38de7b..fd3d94f 100644 --- a/src/battle/mechanic/condition/btl_cond_heal.erl +++ b/src/battle/mechanic/condition/btl_cond_heal.erl @@ -11,7 +11,7 @@ -export ( [ - apply/3 + apply/4 ] ). @@ -25,15 +25,15 @@ -spec apply ( shr_condition:context(any(), VolatileDataType), - btl_character_turn_update:type(), - btl_condition:type() + btl_condition:ref(), + btl_condition:type(), + btl_character_turn_update:type() ) -> { VolatileDataType, - btl_character_turn_update:type(), - btl_condition:update_action() + btl_character_turn_update:type() }. -apply (S0Context, S0Update, _S0Condition) -> +apply (S0Context, _SelfRef, _S0Condition, S0Update) -> {_Trigger, _ReadOnlyData, VolatileData} = S0Context, {VolatileData, S0Update, none}. -- cgit v1.2.3-70-g09d2