summaryrefslogtreecommitdiff
path: root/battle/spheres.py
diff options
context:
space:
mode:
Diffstat (limited to 'battle/spheres.py')
-rw-r--r--battle/spheres.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/battle/spheres.py b/battle/spheres.py
index 2a2b35b..e3b0d88 100644
--- a/battle/spheres.py
+++ b/battle/spheres.py
@@ -22,7 +22,7 @@ from consts import (SPH_WIDEATTACK, SPH_PIERCE, SPH_ASSAULT, SPH_HEAL, SPH_HEALA
from battle.common import find_target, attackall, calc_dmg
# Handle sphere attacks. Unit is a member from Battle[token][scope]
-def sphere_attack(token, unit, sphere):
+def sphere_attack(token, unit, sphere, idx=0):
stdout("%s is attacking" % str(unit))
stdout("Sphere selected: %d" % sphere)
@@ -74,5 +74,6 @@ def sphere_attack(token, unit, sphere):
# We are done!
#stdout("Attack completed")
+ Battle[token]["log"].append(["party", idx, sphere, "enemy", target_id])
return True