summaryrefslogtreecommitdiff
path: root/battle/spheres.py
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-04 15:11:55 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-04 15:11:55 -0300
commit543f81b095b48a131dc1c2dd51a48d562feb3ad3 (patch)
treece08dd4e5d070d9731b727c4f1c16a7b670fc600 /battle/spheres.py
parentfdb91e8d3555cd4ebd8edb31d5b74a2c11f1cf41 (diff)
downloadserver-543f81b095b48a131dc1c2dd51a48d562feb3ad3.tar.gz
server-543f81b095b48a131dc1c2dd51a48d562feb3ad3.tar.bz2
server-543f81b095b48a131dc1c2dd51a48d562feb3ad3.tar.xz
server-543f81b095b48a131dc1c2dd51a48d562feb3ad3.zip
Send action log and minor polishing
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