diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-15 21:04:05 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-02-15 21:04:05 +0000 |
commit | a0ee0b2d45b3db45f932f2abefd6d4c56018660b (patch) | |
tree | 96507e3745c7604d04037d8b2ac588800fd1184f /src/map/skill.c | |
parent | 8f4bff4143898963b1210ffa2d3300020df04c4e (diff) | |
download | hercules-a0ee0b2d45b3db45f932f2abefd6d4c56018660b.tar.gz hercules-a0ee0b2d45b3db45f932f2abefd6d4c56018660b.tar.bz2 hercules-a0ee0b2d45b3db45f932f2abefd6d4c56018660b.tar.xz hercules-a0ee0b2d45b3db45f932f2abefd6d4c56018660b.zip |
- Added battle config option pk_level_range for specifying valid level ranges to engage in PK
- Added battle config allow_es_magic_player to enable SL_S* skills to work on non-mobs.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5290 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index fd7f676a2..56260bb47 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -2974,7 +2974,7 @@ int skill_castend_damage_id (struct block_list* src, struct block_list *bl,int s case SL_STIN:
case SL_STUN:
case SL_SMA:
- if (sd && bl->type != BL_MOB) {
+ if (sd && !battle_config.allow_es_magic_pc && bl->type != BL_MOB) {
status_change_start(src,SC_STUN,100,skilllv,0,0,0,3000,8);
clif_skill_fail(sd,skillid,0,0);
break;
@@ -5436,7 +5436,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in break;
case SL_SKA: // [marquis007]
- if (sd && bl->type != BL_MOB) {
+ if (sd && !battle_config.allow_es_magic_pc && bl->type != BL_MOB) {
status_change_start(src,SC_STUN,100,skilllv,0,0,0,3000,8);
clif_skill_fail(sd,skillid,0,0);
break;
@@ -5451,7 +5451,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in }
break;
case SL_SWOO:
- if (sd && bl->type != BL_MOB) {
+ if (sd && !battle_config.allow_es_magic_pc && bl->type != BL_MOB) {
status_change_start(src,SC_STUN,100,skilllv,0,0,0,3000,8);
clif_skill_fail(sd,skillid,0,0);
break;
@@ -5462,7 +5462,7 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in break;
case SL_SKE:
- if (sd && bl->type != BL_MOB) {
+ if (sd && !battle_config.allow_es_magic_pc && bl->type != BL_MOB) {
status_change_start(src,SC_STUN,100,skilllv,0,0,0,3000,8);
clif_skill_fail(sd,skillid,0,0);
break;
|