summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-04 17:58:10 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-04 17:58:10 +0000
commit32932947f48208db02010030a0d558cf2d19624d (patch)
treef3972640f291deb88b695e70c7d232e4bf14bc6d /src/map/skill.c
parent9f301a592ce1c2646bbda3404e45e4276b072fcd (diff)
downloadhercules-32932947f48208db02010030a0d558cf2d19624d.tar.gz
hercules-32932947f48208db02010030a0d558cf2d19624d.tar.bz2
hercules-32932947f48208db02010030a0d558cf2d19624d.tar.xz
hercules-32932947f48208db02010030a0d558cf2d19624d.zip
- Added battle config setting emergency_recall, specifies behaviour of that skill (skill.conf): 0 - Disabled. 1 - can't be used in nowarpto maps. 2 - Can be used everywhere.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7516 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index dacb57a75..d9f6fbc62 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -906,6 +906,14 @@ int skillnotok (int skillid, struct map_session_data *sd)
clif_skill_fail(sd,skillid,0,0);
return 1;
}
+ case GD_EMERGENCYCALL:
+ if (!battle_config.emergency_call ||
+ (map[sd->bl.m].flag.nowarpto && battle_config.emergency_call&1))
+ {
+ clif_skill_fail(sd,skillid,0,0);
+ return 1;
+ }
+ break;
}
return (map[sd->bl.m].flag.noskill);
}