summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2019-06-07 13:22:10 +0200
committernsensfel <SpamShield0@noot-noot.org>2019-06-07 13:22:10 +0200
commit4ea25208b3e5ffa2a3244f2cadc34c5f07d05e0c (patch)
treefdc24a37c779800b1224e6947dfbc72ca9282a6e /src/battle
parent36479d18690c537f4eb847cfe37fbfe33ae7d5d5 (diff)
Woops, NotOpportunistic != Opportunistic...
Diffstat (limited to 'src/battle')
-rw-r--r--src/battle/mechanic/action/btl_action_attack.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle/mechanic/action/btl_action_attack.erl b/src/battle/mechanic/action/btl_action_attack.erl
index 4a4ee8a..fe77473 100644
--- a/src/battle/mechanic/action/btl_action_attack.erl
+++ b/src/battle/mechanic/action/btl_action_attack.erl
@@ -99,7 +99,7 @@ get_character_abilities (Action, Character, TargetCharacter) ->
TargetDefenseRange = shr_weapon:get_minimum_range(TargetCharacterWeapon),
TargetAttackRange = shr_weapon:get_maximum_range(TargetCharacterWeapon),
- IsNotOpportunistic = btl_action:get_is_opportunistic(Action),
+ IsNotOpportunistic = (not btl_action:get_is_opportunistic(Action)),
RequiredRange =
shr_location:dist