Beispiel #1
0
 public void Clear()
 {
     this.IsBlast                     = null;
     this.IsHitSuccess                = null;
     this.AllSkillFailed              = null;
     this.IsDead                      = null;
     this.AttackerPower               = 0;
     this.BlastPower                  = FIGHT.BLAST_POWER_NONE;
     this.AttackPowerType             = ATTACK_POWER_TYPE.NORMAL;
     this.DamageToDefender            = 0;
     this.GetDamageFinal              = 0;
     this.HitCount                    = FIGHT.HIT_COUNT_DEFAULT;
     this.SkillAffectRange            = SKILL_AFFECT_RANGE.SINGLE_CURRENT;
     this.SkillCustomAffectSlotIDList = null;
     this.AttributesBuff.ClearToZero();
     this.IgnoreDefenderAttributeList.Clear();
 }
        public ChangeAffectRangeFormat(ICommonSkill skill, SkillEffectTable dbData) : base(skill, dbData)
        {
            var _row = ChangeAffectRangeTableReader.Instance.FindDefaultUnique((ushort)dbData.EffectTableID);

            this.AffectRange = _row.AffectRange;
            this.AffectType  = _row.AffectType;

            this.CustomAffectSlotIDList = new List <short> ();

            if (_row.EnableSlotID_0)
            {
                this.CustomAffectSlotIDList.Add(0);
            }
            if (_row.EnableSlotID_1)
            {
                this.CustomAffectSlotIDList.Add(1);
            }
            if (_row.EnableSlotID_2)
            {
                this.CustomAffectSlotIDList.Add(2);
            }
        }