summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-04-02 22:22:23 -0300
committershennetsind <ind@henn.et>2013-04-02 22:22:23 -0300
commite702cc0ab6dccfd0a10b5a1881841452c326affc (patch)
tree5060b0e6187773b7e8e5f7ba900188850e475e8e /src/map/script.c
parent57dff2db23556d01beedd8af95a41e4f03f66681 (diff)
downloadhercules-e702cc0ab6dccfd0a10b5a1881841452c326affc.tar.gz
hercules-e702cc0ab6dccfd0a10b5a1881841452c326affc.tar.bz2
hercules-e702cc0ab6dccfd0a10b5a1881841452c326affc.tar.xz
hercules-e702cc0ab6dccfd0a10b5a1881841452c326affc.zip
Introducing 5 new/official mapflags.
They're: - weapon_damage_rate - magic_damage_rate - misc_damage_rate - long_damage_rate - short_damage_rate Dropped 15 battle settings that became pointless with this upgrade. Updated battleground zone damage reductions, skill damage from -30% to -20% and weapon damage from -40% to -30%. Special Thanks to Muad_Dib. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index b2d9f6c87..5b076aeff 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10907,7 +10907,7 @@ BUILDIN_FUNC(removemapflag)
case MF_NOWARPTO: map[m].flag.nowarpto = 0; break;
case MF_NIGHTMAREDROP: map[m].flag.pvp_nightmaredrop = 0; break;
case MF_ZONE:/* reset zone state, mapflags cant be removed however */
- map[m].zone = &map_zone_all;
+ map[m].zone = ( battle_config.pk_mode && map[m].flag.pvp ) ? &map_zone_pk : &map_zone_all;
break;
case MF_NOCOMMAND: map[m].nocommand = 0; break;
case MF_NODROP: map[m].flag.nodrop = 0; break;