summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index f36d60e..d8e6ef8 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -4256,6 +4256,9 @@ int mobskill_use (struct mob_data *md, unsigned int tick, int event)
mob_getfriendstatus (md, ms[i].cond1,
ms[i].cond2)) != NULL);
break;
+ case MSC_NOTINTOWN: // Only outside of towns.
+ flag = !map[md->bl.m].flag.town;
+ break;
case MSC_SLAVELT: // slave < num
flag = (mob_countslave (md) < c2);
break;
@@ -4836,6 +4839,8 @@ static int mob_readskilldb (void)
{
"friendstatusoff", MSC_FRIENDSTATUSOFF},
{
+ "notintown", MSC_NOTINTOWN},
+ {
"attackpcgt", MSC_ATTACKPCGT},
{
"attackpcge", MSC_ATTACKPCGE},