Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:Tyler-IN/MnB2-Bannerlord-Communit…
Browse files Browse the repository at this point in the history
…yPatch
  • Loading branch information
Tyler-IN committed Apr 13, 2020
2 parents 4013ed9 + 18c98d0 commit 3604aff
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ public override bool IsApplicable(Game game) {
private static void Postfix(ref int __result, MobileParty party, StatExplainer explanation) {
var perk = ActivePatch._perk;
var hero = party.LeaderHero;
if (hero == null)

if (hero == null || hero.Clan?.Kingdom?.RulingClan?.Leader != hero)
return;
if (!(hero?.GetPerkValue(perk) ?? false))

if (!hero.GetPerkValue(perk))
return;

var kingdomClans = hero.Clan?.Kingdom?.Clans;
Expand Down

0 comments on commit 3604aff

Please sign in to comment.