summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-01 15:56:34 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-01 15:56:34 +0000
commit911c0ea64888157f7a9496a4a5c516af92c0d11c (patch)
tree7a4d5fa04cdca47d9b7eadf8ffddca92b39ed6a8 /src/map/battle.c
parentf15995cea6ac172a676b17fc91fb0940f97ae87f (diff)
downloadhercules-911c0ea64888157f7a9496a4a5c516af92c0d11c.tar.gz
hercules-911c0ea64888157f7a9496a4a5c516af92c0d11c.tar.bz2
hercules-911c0ea64888157f7a9496a4a5c516af92c0d11c.tar.xz
hercules-911c0ea64888157f7a9496a4a5c516af92c0d11c.zip
- Added a missing break in battle_check_target
- Added config setting "partial_name_scan", which specifies whether @ given names should use a partial string lookup or absolute name lookup. Defaults to no (gm.conf) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8578 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 5265dd270..e77a26e2e 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3193,6 +3193,7 @@ int battle_check_target( struct block_list *src, struct block_list *target,int f
} else //Excepting traps and icewall, you should not be able to target skills.
return 0;
}
+ break;
//Valid targets with no special checks here.
case BL_HOM:
break;
@@ -3479,6 +3480,7 @@ static const struct battle_data_short {
{ "atcommand_gm_only", &battle_config.atc_gmonly },
{ "atcommand_spawn_quantity_limit", &battle_config.atc_spawn_quantity_limit },
{ "atcommand_slave_clone_limit", &battle_config.atc_slave_clone_limit},
+ { "partial_name_scan", &battle_config.partial_name_scan },
{ "gm_all_skill", &battle_config.gm_allskill },
{ "gm_all_skill_add_abra", &battle_config.gm_allskill_addabra },
{ "gm_all_equipment", &battle_config.gm_allequip },
@@ -3884,6 +3886,7 @@ void battle_set_defaults() {
battle_config.atc_gmonly=0;
battle_config.atc_spawn_quantity_limit=0;
battle_config.atc_slave_clone_limit=0;
+ battle_config.partial_name_scan=0;
battle_config.gm_allskill=0;
battle_config.gm_allequip=0;
battle_config.gm_skilluncond=0;