From 65529511e9b77f85a9c6deb3307decc90702fbfd Mon Sep 17 00:00:00 2001 From: Matias Barcenas Date: Tue, 13 Mar 2018 22:15:03 -0500 Subject: [PATCH] Fixed a bug where attacks weren't being reset. --- fluxion.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fluxion.sh b/fluxion.sh index 5986813..a90c1aa 100755 --- a/fluxion.sh +++ b/fluxion.sh @@ -1556,8 +1556,10 @@ fluxion_set_attack() { head -n 3 "attacks/$attack/language/$FluxionLanguage.sh" | \ grep -E "^# identifier: " | sed -E 's/# \w+: //' ) - if [ "$identifier" ]; then identifiers+=("$identifier") - else identifiers+=("$attack") + if [ "$identifier" ]; then + identifiers+=("$identifier") + else + identifiers+=("$attack") fi done @@ -1660,6 +1662,7 @@ fluxion_run_attack() { fluxion_handle_exit fi + fluxion_unprep_attack fluxion_unset_attack }