summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-20 14:32:10 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-20 14:32:10 +0000
commit9b318079b61e0582e91c1e20786bf9ab3df857c5 (patch)
tree79044c2bff59d6664787a4d472646ff0251e9c6e /src/map/battle.c
parent5c4b7e349d1ac6e251cb6ee139bb365afb083083 (diff)
downloadhercules-9b318079b61e0582e91c1e20786bf9ab3df857c5.tar.gz
hercules-9b318079b61e0582e91c1e20786bf9ab3df857c5.tar.bz2
hercules-9b318079b61e0582e91c1e20786bf9ab3df857c5.tar.xz
hercules-9b318079b61e0582e91c1e20786bf9ab3df857c5.zip
- Fixed a comparison whn doing item searches
- Fixed hom_setting&0x2 conflicting with the 'view-range' limit check. - Stone curse now uses status_percent_damage instead of a precalculated value. - Merged the SA_MONOCELL and SA_CLASSCHANGE code. After changing class all the status changes that cannot be triggered on bosses are dispelled. - SA_CLASSCHANGE now uses the bloody branch list to pick a target MVP class. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12098 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 7912e71c8..c336426a6 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3276,9 +3276,10 @@ bool battle_check_range(struct block_list *src,struct block_list *bl,int range)
if(src->m != bl->m) // 違うマップ
return false;
- if(src->type == BL_HOM && battle_config.hom_setting&0x2)
- range = battle_config.area_size + 1; //WTF, way to go Aegis and your awesome bugs.
+ if(src->type == BL_HOM && battle_config.hom_setting&0x2)
+ ; //WTF, way to go Aegis and your awesome bugs.
+ else
if (!check_distance_bl(src, bl, range))
return false;