public override void ApplyEffectKind(Troop troop) { Influence t = Session.Current.Scenario.GameCommonData.AllInfluences.GetInfluence(this.number); if (t != null) { troop.EventInfluences.Add(t); t.ApplyInfluence(troop, Applier.Event, 0); } }
public override void ApplyEffectKind(Person person) { if (person.LocationTroop != null) { Influence t = Session.Current.Scenario.GameCommonData.AllInfluences.GetInfluence(this.number); if (t != null) { person.LocationTroop.EventInfluences.Add(t); t.ApplyInfluence(person.LocationTroop, Applier.Event, 0); } } }