summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mob.c2
-rw-r--r--src/map/skill.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index e6fa8d2fd..9e319eb42 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -411,7 +411,7 @@ int mob_once_spawn(struct map_session_data* sd, int m, short x, short y, const c
for (count = 0; count < amount; count++)
{
- int c = ( class_ >= 0 ) ? class_ : mob_get_random_id(-class_-1, battle_config.random_monster_checklv?3:1, lv);
+ int c = ( class_ >= 0 ) ? class_ : mob_get_random_id(-class_-1, !battle_config.random_monster_checklv?3:1, lv);
md = mob_once_spawn_sub(sd?&sd->bl:NULL, m, x, y, mobname, c, event);
if (!md) continue;
diff --git a/src/map/skill.c b/src/map/skill.c
index 7d82e032c..aebfc9eee 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -5332,7 +5332,8 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
break;
case 5: // 2000HP heal, random teleported
status_heal(bl, 2000, 0, 0);
- unit_warp(bl, -1,-1,-1, 3);
+ if( !map_flag_vs(bl->m) )
+ unit_warp(bl, -1,-1,-1, 3);
break;
case 6: // random 2 other effects
if (count == -1)