Skip to content

Implement attackDefs field noenemycast check

NerduMiner requested to merge nerdyminer18/srb2p-public:noenemycast into next

norogue is good, it lets skills that shouldn't be used by enemies avoid being placed into their skillsets in rogue/marathon mode.

Team Attacks exist however, and the current implementation of them into mods bypasses norogue entirely, as they are usually implicited onto a perfectly valid skill.

This commit adds a check into the smartAttackSelect function to check for the "noenemycast" attackDefs entry variable. If its false or nil the skill can be used or considered to be used, otherwise the enemy will have to check another skill in its skill list.

Merge request reports

Loading