Example #1
0
 public DamageEffect(int dmg, SpellAreaEffect areaOfEffect, DamageType spellDamageType,
                     SpellTypeEnum spellEffect = SpellTypeEnum.Damage)
 {
     Damage          = dmg;
     SpellEffect     = spellEffect;
     AreaOfEffect    = areaOfEffect;
     SpellDamageType = spellDamageType;
 }
Example #2
0
        public void CopyFrom(Spell spell)
        {
            this._id = spell._id;
            this._name = spell._name;
            this._elementType = spell._elementType;
            this._spellType = spell._spellType;
            this._level = spell._level;

            this._basicCost = spell._basicCost;
            this._cost = spell._cost;

            this._duration = spell._duration;
            this._basicDamage = spell._basicDamage;
            this._damageLevels[0] = spell._damageLevels[0];
            this._damageLevels[1] = spell._damageLevels[1];
            this._damageLevels[2] = spell._damageLevels[2];
            this._damage = spell._damage;
            this._isAll = spell._isAll;
            this._isSummon = spell._isSummon;
            this._description = spell._description;
            this._isMissile = spell._isMissile;
            this._isHit = spell._isHit;
            this._targetType = spell._targetType;
            this._isDamage = spell._isDamage;
            this._bookImgFileName = spell._bookImgFileName;
        }