Mount & Blade II: Bannerlord
0 of 0

File information

Last updated

Original upload

Created by

mylittletantan

Uploaded by

mylittltetantan

Virus scan

Safe to use

Tags for this mod

About this mod

(FIXED IN 1.4.3)
Currently most skills have no effect at all for units due to a bug, they depend entirely on equipment. This mod enables the personal effect of skills for them.

Permissions and credits
Changelogs
(FIXED IN 1.4.3)
Currently most skills have no effect at all for normal units, like they do for heroes (due to a bug). They therefore depend entirely on equipment.
This mod enables the personal effect of skills for them.


This is easily testable by using ludicrous numbers, such as looters with 5000 stats, and seeing no effect on damage numbers. The effect skills do have is changing their AI, but riding, damage and weapon speed is not affected.
For further verification, use dnSpy and set a breakpoint on the return null; in the method described below before starting a battle. You can then see that units get no benefit from their personal skills.

This bug has been present since 1.0.10. This mod fixes it on all versions


For other modders, this mod patches AddSkillBonusForCharacter in SkillHelper(namespace Helpers in CampaignSystem.dll). I use a postfix where I simply check if the character is not null and the heroObject is null.
This is called in SandboxAgentStatCalculateModel in Sandbox.dll in GetSkillEffectsOnAgent to add skill effects to heroes and units.

The default version of this function is called when spawning units. The problem is it checks their heroObject, which is always null for normal units. As such it always exits the function too early, before giving them any effects.

This mod instead adds personal effects where it would normally return. That way heroes should be unaffected.


Feel free to do whatever you want with this mod.

Please consider checking out my other mods