Master of Magic

Master of Magic

评价数不足
[Util] EarthToMud AI Fix
   
奖励
收藏
已收藏
取消收藏
标签: 3801925264
文件大小
发表于
更新日期
84.042 KB
2024 年 2 月 23 日 上午 10:35
2024 年 5 月 10 日 上午 7:02
3 项改动说明 ( 查看 )

订阅以下载
[Util] EarthToMud AI Fix

描述
This is a fix to the AI's usage of the "Earth To Mud" spell as follows:

SBAI_EarthToMud:
- removes check for ELEMENTAL_ARMOR
- removes check for RESIST_ELEMENTS
- adds check for EARTH_WALKER

SBH_MassSlow:
- adds check for target parameter passed as BattleUnit
- adds check for target parameter passed as HexCoordinates
- adds check for Vector3i.invalid

General fixes to address compiler performance warning(s):
- Warning CA1800 - a variable, is cast multiple times.

see https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2015/code-quality/ca1800-do-not-cast-unnecessarily
1 条留言
Dorian Gray  [作者] 2024 年 2 月 23 日 上午 10:42 
This was previously included in the "Counter Magic Fix" Mod. This Mod is an effort to separate and making it a stand-alone Mod instead.