Added const cast Entity::CastToBot()

This commit is contained in:
Uleat
2019-06-21 06:00:58 -04:00
parent ca874cb861
commit e903b06c22
4 changed files with 29 additions and 12 deletions
+1
View File
@@ -735,6 +735,7 @@ type', in which case, the answer is yes.
}
#ifdef BOTS
// this is HIGHLY inefficient
bool HasRuleDefined = false;
bool IsBotAttackAllowed = false;
IsBotAttackAllowed = Bot::IsBotAttackAllowed(mob1, mob2, HasRuleDefined);