diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-18 16:01:26 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-18 16:01:26 +0000 |
commit | 2449d2a6e7ddd1648d2e1fe446c97fe94378af28 (patch) | |
tree | ce6f82d036029d2954764b2fc7119f538e0347fa /src/map/skill.c | |
parent | bb0bd9d290f6dd1f3a455da7d4cd4ae58e8e49a2 (diff) | |
download | hercules-2449d2a6e7ddd1648d2e1fe446c97fe94378af28.tar.gz hercules-2449d2a6e7ddd1648d2e1fe446c97fe94378af28.tar.bz2 hercules-2449d2a6e7ddd1648d2e1fe446c97fe94378af28.tar.xz hercules-2449d2a6e7ddd1648d2e1fe446c97fe94378af28.zip |
- Removed message 592 from trade.c
- Removed mapflag nopvp
- Added support for disabling mapflags on a mapflag line:
comodo.gat mapflag nomemo <- turns on nomemo mapflag
comodo.gat mapflag nomemo off <- turns off nomemo mapflag
- Cleaned up and optimized the restricted/zones mapflag. Restricted cards will just not work in disallowed maps rather than blocking the compounded equipement from being used.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6159 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index a3c1b8813..34980758b 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -828,10 +828,8 @@ int skillnotok(int skillid, struct map_session_data *sd) return 1;
if (agit_flag && skill_get_nocast (skillid) & 8)
return 1;
- if (battle_config.pk_mode && !map[sd->bl.m].flag.nopvp && skill_get_nocast (skillid) & 16)
+ if (battle_config.pk_mode && map[sd->bl.m].flag.pvp && skill_get_nocast (skillid) & 16)
return 1;
-//printf("skill %d, flag restricted=%d, zone=%d, zone*8=%d, skill_get_nocast (skillid)=%d, skill_get_nocast (skillid)&8*zone=%d\n",
-// skillid,map[sd->bl.m].flag.restricted,map[sd->bl.m].zone,map[sd->bl.m].zone*8, skill_get_nocast (skillid),skill_get_nocast (skillid) & (8*map[sd->bl.m].zone));
if(map[sd->bl.m].flag.restricted && map[sd->bl.m].zone && skill_get_nocast (skillid) & (8*map[sd->bl.m].zone))
return 1;
|