summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-25 23:37:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-31 23:07:45 +0300
commit0cb157c95e3c3af13af1f1f4294bf38c414fc7ab (patch)
treec68b70c8d0e81bc826e1c2c4684d0852335e1f3c /src/map/battle.c
parentf0d5be2db32afc7b4382276ffa3c60a1354bea8e (diff)
downloadhercules-0cb157c95e3c3af13af1f1f4294bf38c414fc7ab.tar.gz
hercules-0cb157c95e3c3af13af1f1f4294bf38c414fc7ab.tar.bz2
hercules-0cb157c95e3c3af13af1f1f4294bf38c414fc7ab.tar.xz
hercules-0cb157c95e3c3af13af1f1f4294bf38c414fc7ab.zip
Remove useless checks.
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 263670ea3..86134db52 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -348,7 +348,7 @@ int64 battle_attr_fix(struct block_list *src, struct block_list *target, int64 d
struct skill_unit_group *sg;
struct block_list *sgsrc;
- if( !su || !su->alive
+ if(!su->alive
|| (sg = su->group) == NULL || sg->val3 == -1
|| (sgsrc = map->id2bl(sg->src_id)) == NULL || status->isdead(sgsrc)
)