Skip to content

Commit

Permalink
support "Mage" vocation (#882)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
divinity76 authored Oct 2, 2024
1 parent 3a22c81 commit cf7badd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/game_bot/default_configs/vBot_4.8/vBot/extras.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cf7badd

Please sign in to comment.