From b0cef869b5edeeae5ff90602911b6f5c7ca67a4b Mon Sep 17 00:00:00 2001 From: KimLS Date: Sat, 17 Jun 2017 19:40:54 -0700 Subject: [PATCH] Fix bot compile --- zone/bot.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/zone/bot.cpp b/zone/bot.cpp index 12cc040bd..fbed35a06 100644 --- a/zone/bot.cpp +++ b/zone/bot.cpp @@ -3857,17 +3857,7 @@ void Bot::AddToHateList(Mob* other, uint32 hate, int32 damage, bool iYellForHelp Mob::AddToHateList(other, hate, damage, iYellForHelp, bFrenzy, iBuffTic, pet_command); } -bool Bot::Attack(Mob* other, int Hand, bool FromRiposte, bool IsStrikethrough, bool IsFromSpell, ExtraAttackOptions *opts) { -#ifdef LUA_EQEMU - bool lua_ret = false; - bool ignoreDefault = false; - lua_ret = LuaParser::Instance()->BotAttack(this, other, Hand, bRiposte, IsStrikethrough, IsFromSpell, opts, ignoreDefault); - - if (ignoreDefault) { - return lua_ret; - } -#endif - +bool Bot::Attack(Mob* other, int Hand, bool FromRiposte, bool IsStrikethrough, bool IsFromSpell, ExtraAttackOptions *opts) { if (!other) { SetTarget(nullptr); Log(Logs::General, Logs::Error, "A null Mob object was passed to Bot::Attack for evaluation!");