summaryrefslogtreecommitdiff
path: root/src/map/mob.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mob.h')
-rw-r--r--src/map/mob.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/mob.h b/src/map/mob.h
index bef8324d4..472e0bc54 100644
--- a/src/map/mob.h
+++ b/src/map/mob.h
@@ -112,6 +112,8 @@ struct mob_data {
int provoke_flag; // Celest
unsigned npc_killmonster: 1; //for new killmonster behavior
unsigned rebirth: 1; // NPC_Rebirth used
+ unsigned inmunity: 1; // Monster Cannot be attacked
+ unsigned int bg_id; // BattleGround System
} state;
struct guardian_data* guardian_data;
struct {
@@ -208,6 +210,7 @@ int mob_once_spawn_area(struct map_session_data* sd,int m,int x0,int y0,int x1,i
bool mob_ksprotected (struct block_list *src, struct block_list *target);
int mob_spawn_guardian(const char* mapname, short x, short y, const char* mobname, int class_, const char* event, int guardian, bool has_index); // Spawning Guardians [Valaris]
+int mob_spawn_bg(const char* mapname, short x, short y, const char* mobname, int class_, const char* event, int bg_id);
int mob_guardian_guildchange(struct block_list *bl,va_list ap); //Change Guardian's ownership. [Skotlex]
int mob_randomwalk(struct mob_data *md,unsigned int tick);
@@ -227,6 +230,7 @@ void mob_heal(struct mob_data *md,unsigned int heal);
#define mob_stop_walking(md, type) unit_stop_walking(&(md)->bl, type)
#define mob_stop_attack(md) unit_stop_attack(&(md)->bl)
+#define mob_is_battleground(md) ( map[(md)->bl.m].flag.battleground && ((md)->class_ == 1906 || ((md)->class_ >= 1909 && (md)->class_ <= 1915)) )
void mob_clear_spawninfo();
int do_init_mob(void);