From cf7badda978de88cb3724615688e3d9da2ff4207 Mon Sep 17 00:00:00 2001 From: divinity76 Date: Wed, 2 Oct 2024 08:52:04 +0200 Subject: [PATCH] support "Mage" vocation (#882) several OT servers merge MS/ED vocation into a Mage vocation having the best features of both MS and ED. Without this fix, on those servers, vBot would constantly error out with Error: (...) concatenat voc: a nil value --- mods/game_bot/default_configs/vBot_4.8/vBot/extras.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/game_bot/default_configs/vBot_4.8/vBot/extras.lua b/mods/game_bot/default_configs/vBot_4.8/vBot/extras.lua index c063b71132..2b69d8d597 100644 --- a/mods/game_bot/default_configs/vBot_4.8/vBot/extras.lua +++ b/mods/game_bot/default_configs/vBot_4.8/vBot/extras.lua @@ -588,7 +588,7 @@ if true then guild = guild .. "..." end local voc = "?" - if text:lower():find("sorcerer") then + if text:lower():find("sorcerer") or text:lower():find("mage") then voc = "MS" elseif text:lower():find("druid") then voc = "ED"