nwnxee / unified

Binaries available under the Releases tab on Github
https://nwnxee.github.io/unified
GNU General Public License v3.0
131 stars 92 forks source link

Creature: AddFeat - Ambidexterity #1340

Open Morderon opened 3 years ago

Morderon commented 3 years ago

Ambidexterity cannot be added to characters with ranger levels.

Presence of dual-wield didn't matter, but dual-wield is a placebo feat anwyays.

Daztek commented 3 years ago

Not really seeing the issue here, but AddFeat() doesn't do any checks, otoh CNWCreatureStates::HasFeat() is hardcoded to return TRUE for Ambidexterity/TwoWeaponFighting if the creature is a Ranger and their armor is <4 AC.

NWNX_Experimental has an env var to disable said hardcodedness: https://github.com/nwnxee/unified/tree/master/Plugins/Experimental#environment-variables.