Made some plugins optional

This commit is contained in:
Jackz 2022-07-12 23:12:03 -05:00
parent 53191a9e3c
commit 0179109b05
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
6 changed files with 15 additions and 3 deletions

View file

@ -17,6 +17,7 @@ void ActivateAutoPunish(int client) {
}
void SetWitchTarget(int witch, int target) {
#if defined _behavior_included
Behavior behavior = Behavior(witch, WITCH_QUERY);
BehaviorAction action = behavior.CurrentAction.Last;
@ -25,6 +26,9 @@ void SetWitchTarget(int witch, int target) {
IActionResult result; result.Init(CHANGE_TO, newaction);
result.ToAction(action);
#else
PrintToServer("[FTT] SetWitchTarget() called when behaviors plugin not found");
#endif
}
bool ToggleMarkPlayer(int client, int target) {