Removed deprecated script command "unitemote" (#7443)

This commit is contained in:
Atemo 2022-11-16 23:00:53 +01:00 committed by GitHub
parent 77aed690ea
commit cc5770eda4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19872,29 +19872,6 @@ BUILDIN_FUNC(unittalk)
return SCRIPT_CMD_SUCCESS;
}
/// Makes the unit do an emotion.
///
/// unitemote <unit_id>,<emotion>;
///
/// @see ET_* in script_constants.hpp
BUILDIN_FUNC(unitemote)
{
int emotion;
struct block_list* bl;
emotion = script_getnum(st,3);
if (emotion < ET_SURPRISE || emotion >= ET_MAX) {
ShowWarning("buildin_emotion: Unknown emotion %d (min=%d, max=%d).\n", emotion, ET_SURPRISE, (ET_MAX-1));
return SCRIPT_CMD_FAILURE;
}
if (script_rid2bl(2,bl))
clif_emotion(bl, emotion);
return SCRIPT_CMD_SUCCESS;
}
/// Makes the unit cast the skill on the target or self if no target is specified.
///
/// unitskilluseid <unit_id>,<skill_id>,<skill_lv>{,<target_id>,<casttime>,<cancel>,<Line_ID>};
@ -27323,7 +27300,6 @@ struct script_function buildin_func[] = {
BUILDIN_DEF(unitstopattack,"i"),
BUILDIN_DEF(unitstopwalk,"i?"),
BUILDIN_DEF(unittalk,"is?"),
BUILDIN_DEF_DEPRECATED(unitemote,"ii","20170811"),
BUILDIN_DEF(unitskilluseid,"ivi????"), // originally by Qamera [Celest]
BUILDIN_DEF(unitskillusepos,"iviii???"), // [Celest]
// <--- [zBuffer] List of unit control commands