diff options
Diffstat (limited to 'src/map/magic-stmt.c')
-rw-r--r-- | src/map/magic-stmt.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map/magic-stmt.c b/src/map/magic-stmt.c index d89a01e..0d4b4b7 100644 --- a/src/map/magic-stmt.c +++ b/src/map/magic-stmt.c @@ -488,6 +488,16 @@ op_status_change(env_t *env, int args_nr, val_t *args) } static int +op_stop_status_change(env_t *env, int args_nr, val_t *args) +{ + entity_t *subject = ARGENTITY(0); + + skill_status_change_end(subject, ARGINT(1), -1); + + return 0; +} + +static int op_override_attack(env_t *env, int args_nr, val_t *args) { entity_t *psubject = ARGENTITY(0); @@ -794,6 +804,7 @@ static op_t operations[] = { "warp", "el", op_warp }, { "banish", "e", op_banish }, { "status_change", "eiiiiii", op_status_change }, + { "stop_status_change", "ei", op_stop_status_change }, { "override_attack", "eiiiiii", op_override_attack }, { "create_item", "e.i", op_create_item }, { "aggravate", "eie", op_aggravate }, |