Fixed a bug where attacks weren't being reset.

This commit is contained in:
Matias Barcenas 2018-03-13 22:15:03 -05:00
parent 6792fedc39
commit 65529511e9
1 changed files with 5 additions and 2 deletions

View File

@ -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
}