Exemplo n.º 1
0
        // Token: 0x060008DA RID: 2266 RVA: 0x00022694 File Offset: 0x00020894
        public override Damage GetRawDamage(Unit9 unit, float?remainingHealth = null)
        {
            Damage      damage      = new Damage();
            StaticField staticField = this.staticField;

            if (staticField != null && staticField.CanBeCasted(true))
            {
                damage += this.staticField.GetRawDamage(unit, remainingHealth);
            }
            LightningBolt lightningBolt = this.lightningBolt;

            if (lightningBolt != null && lightningBolt.IsValid)
            {
                damage += this.lightningBolt.GetBaseDamage();
            }
            return(damage);
        }
Exemplo n.º 2
0
        internal override void SetOwner(Unit9 owner)
        {
            base.SetOwner(owner);

            var ability = EntityManager9.BaseAbilities.FirstOrDefault(
                x => x.Id == AbilityId.zuus_static_field && x.Owner?.Handle == owner.Handle);

            if (ability != null)
            {
                this.staticField = (StaticField)EntityManager9.AddAbility(ability);
            }

            ability = EntityManager9.BaseAbilities.FirstOrDefault(
                x => x.Id == AbilityId.zuus_lightning_bolt && x.Owner?.Handle == owner.Handle);

            if (ability != null)
            {
                this.lightningBolt = (LightningBolt)EntityManager9.AddAbility(ability);
            }
        }