diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-08-16 19:17:43 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-08-16 19:17:43 -0300 |
commit | b6a3272cfe03fe98bf06dd4bee08334d654f80f9 (patch) | |
tree | 248c8896ab7d4d72903a906b9ccd3370de02dacd /battle | |
parent | 1a971ce306c52ba85d48658705eae9ae22f50bd6 (diff) | |
download | server-b6a3272cfe03fe98bf06dd4bee08334d654f80f9.tar.gz server-b6a3272cfe03fe98bf06dd4bee08334d654f80f9.tar.bz2 server-b6a3272cfe03fe98bf06dd4bee08334d654f80f9.tar.xz server-b6a3272cfe03fe98bf06dd4bee08334d654f80f9.zip |
Send attack all as SRV_NOCAST
Diffstat (limited to 'battle')
-rw-r--r-- | battle/common.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/battle/common.py b/battle/common.py index 6fee368..a8407fe 100644 --- a/battle/common.py +++ b/battle/common.py @@ -24,7 +24,7 @@ from consts import (SC_ATKUP, SC_DEFDOWN, SC_DEFUP, SC_ATKDOWN, SFLAG_CLEARGEMS, SFLAG_DOUBLEGEMS, SFLAG_SPECIAL, SFLAG_FIRSTLOOT, SFLAG_DOUBLEEXP, SFLAG_DOUBLEGP, SPH_WIDEATTACK, SPH_PIERCE, SPH_ASSAULT, SPH_HEAL, SPH_HEALALL, SPH_ATKUP, - SPH_DEFUP, SPH_NONE, SRV_SPHERE, SRV_WAVE) + SPH_DEFUP, SPH_NONE, SRV_SPHERE, SRV_WAVE, SRV_NOCAST) import random, traceback import player @@ -95,13 +95,15 @@ def attackall(token, atker, scope): for c, i in enumerate(Battle[token][scope]): if (i["hp"] < 0): continue - i["hp"]-=calc_dmg(token, atker, i, atker["atk"], 0.0) + + dmg = calc_dmg(token, atker, i, atker["atk"], 0.0) + i["hp"]-=dmg # If passed with a negative value... if (i["hp"] > i["max_hp"]): i["hp"]=0+i["max_hp"] - #Battle[token]["log"].append(["party", idx, sphere, dmg, scope, c]) + Battle[token]["log"].append(["", 0, SRV_NOCAST, dmg, scope, c]) return False ############################################# |