summaryrefslogtreecommitdiff
path: root/src/emap/script_buildins.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r--src/emap/script_buildins.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 4053158..7cea6c3 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -2707,47 +2707,6 @@ BUILDIN(debugmes)
return true;
}
-// Advanced monster data overrider
-// aggravate(guid)
-BUILDIN(aggravate)
-{
- struct block_list *bl;
- struct map_session_data *sd = NULL;
-
- bl = map->id2bl(script_getnum(st, 2));
-
- // We only work with mobs
- if (bl == NULL) {
- ShowWarning("buildin_aggravate: Error in finding object with given GID %d!\n", script_getnum(st, 2));
- script_pushint(st, -1);
- return false;
- }
-
- if (bl->type != BL_MOB) {
- ShowWarning("buildin_aggravate: GID %d is not a monster!\n", script_getnum(st, 2));
- script_pushint(st, -1);
- return false;
- }
-
- // Player must be attached
- sd = script->rid2sd(st);
- if (sd == NULL) {
- ShowWarning("buildin_aggravate: Ran without player attached!");
- return true;
- }
-
- // Create monster structure
- struct mob_data *md = BL_UCAST(BL_MOB, bl);
-
- // Override the provoke flag
- md->state.provoke_flag = sd->status.account_id;
- // We could use mob->target()
- // But I want aggravate to apply without any checks
- // Skipping chase checks
- md->target_id = sd->status.account_id;
- return true;
-}
-
// Like heal() but works against anything (casts battle funcs)
// types: 1- physical; 2- magic.