Ejemplo n.º 1
0
        public void WearOff(NWCreature oCaster, NWObject oTarget)
        {
            foreach (Effect effect in oTarget.Effects)
            {
                if (_.GetEffectTag(effect) == "FOOD_DISEASE_EFFECT")
                {
                    _.RemoveEffect(oTarget.Object, effect);
                }
            }

            oTarget.DelayCommand(() =>
            {
                _skill.ApplyStatChanges(NWPlayer.Wrap(oTarget.Object), null);
            }, 0.5f);
        }