コード例 #1
0
        public override bool SameAs(Effect e)
        {
            Incapacitated incapacitated = e as Incapacitated;

            if (incapacitated.DVPenalty != DVPenalty)
            {
                return(false);
            }
            if (incapacitated.SaveTarget != SaveTarget)
            {
                return(false);
            }
            return(base.SameAs(e));
        }
コード例 #2
0
 public override bool Apply(GameObject Object)
 {
     if (Object.HasEffect("Incapacitated"))
     {
         Incapacitated incapacitated = Object.GetEffect("Incapacitated") as Incapacitated;
         if (Duration > incapacitated.Duration)
         {
             incapacitated.Duration = Duration;
         }
         return(true);
     }
     if (Object.FireEvent("ApplyIncapacitate"))
     {
         ApplyStats();
         DidX("is", "incapacitated", "!", null, null, Object);
         Object.ParticleText("&R*KO'd!!!*");
         return(true);
     }
     return(false);
 }