/Natural resistance
if( !(flag&8) )
{
if( !(type == SC_FREEZE && sc && sc->data[SC_FREEZING]) )// Is this stuff needed along with whats below? Needs a recheck.[Rytech]
rate -= rate * sc_def/100; // If Freezing, Freeze ignore status defenses againts Freeze.
//Item resistance (only applies to rate%)
if( sd && SC_COMMON_MIN 0 && (!(type == SC_FREEZE && sc && sc->data[SC_FREEZING]) || sd->reseff[type-SC_COMMON_MIN] >= 10000) ) // Freeze while Freeze only is protected by 100% resitance (Marc Card, Unfrozen Armor)
rate -= rate*sd->reseff[type-SC_COMMON_MIN]/10000;
if( sd->sc.data[SC_COMMONSC_RESIST] && !(type == SC_FREEZE && sc && sc->data[SC_FREEZING]) )
rate -= rate*sd->sc.data[SC_COMMONSC_RESIST]->val1/100;
}
}