void IRulebookHandler <RuleCalculateAbilityParams> .OnEventAboutToTrigger(RuleCalculateAbilityParams evt) { if (evt.Spellbook?.Blueprint != spellbook) { return; } evt.AddBonusConcentration(-10); }
void IRulebookHandler <RuleCalculateAbilityParams> .OnEventAboutToTrigger(RuleCalculateAbilityParams evt) { if (evt.Spellbook?.Blueprint != spellbook) { return; } var center_self = evt.Initiator.Get <UnitPartCenterSelf>(); if (center_self != null && center_self.active()) { return; } evt.AddBonusConcentration(-10); }