Example #1
0
    public override void Initialize(float statusDuration, CombatEntity caster, CombatEntity target)
    {
        base.Initialize(statusDuration, caster, target);
        var d = (caster.GetStat(StatType.Strength) * strengthScaling) + (caster.GetStat(StatType.Magic) * magicScaling);

        totalDamage = (int)d;
    }
Example #2
0
    public override void Apply(CombatEntity caster, CombatEntity target)
    {
        float damage = (caster.GetStat(StatType.Strength) * strengthScaling) + (caster.GetStat(StatType.Magic) * magicScaling);

        target.DoDamage((int)damage, attributeType);
    }