public override void ApplyEffectKind(Person person, Event e) { FactionList factionlist = person.Scenario.Factions; Faction oldFaction = person.BelongedFaction; Faction mergeFaction = factionlist.GetGameObject(mergeFactionID) as Faction; if (oldFaction != null && mergeFaction != null && person == oldFaction.Leader) { oldFaction.ChangeFaction(mergeFaction); //oldFaction.Leader.InitialLoyalty(); } }