int skill = Math.Min(100, (int)m.Skills[SkillName.Hiding].Value);
int range = Math.Min((100 - skill) / 2 + 8, 18); //Cap of 18 not OSI-exact, intentional difference
bool badCombat = (!m_CombatOverride && m.Combatant is Mobile && m.InRange(m.Combatant.Location, range) && ((Mobile)m.Combatant).InLOS(m.Combatant));
bool ok = (!badCombat /*&& m.CheckSkill( SkillName.Hiding, 0.0 - bonus, 100.0 - bonus )*/);
int skill = Math.Min(100, (int)m.Skills[SkillName.Hiding].Value);
int range = Math.Min((100 - skill) / 2 + 8, 18); //Cap of 18 not OSI-exact, intentional difference
bool badCombat = (!m_CombatOverride && m.Combatant is Mobile && m.InRange(m.Combatant.Location, range) && ((Mobile)m.Combatant).InLOS(m.Combatant));
if ( m.Skills[SkillName.Hiding].Value >= 120)
badCombat = false;
bool ok = (!badCombat /*&& m.CheckSkill( SkillName.Hiding, 0.0 - bonus, 100.0 - bonus )*/);
We use essential cookies to make this site work, and optional cookies to enhance your experience.