private void _applyBuffWhenPassesChance(BattleNPC targetNPC) { bool passedChanceToHit = GameGlobals.CheckPercentHitChance(m_Configuration.ChanceToApply); if (passedChanceToHit) { BuffActive newActive = Instantiate(m_BuffActiveObject, targetNPC.transform); newActive.gameObject.SetActive(true); targetNPC.RegisterBuff(newActive); newActive.Initialize(m_Configuration, m_SkillAffinity, m_Caster); newActive.StartBuffs(targetNPC); } }