Hi guys,
I am getting a problem on spells damage the problem is, if my spells get leveled it's getting damage decrease. The more spell level it increase the more the spell damage decreasing. How can I get this done?
here is the based
What could be the problem here?
Thank you.
I am getting a problem on spells damage the problem is, if my spells get leveled it's getting damage decrease. The more spell level it increase the more the spell damage decreasing. How can I get this done?
Code:
MsgSpellAnimation.SpellObj AnimationObj;
Calculate.Magic.OnPlayer(user.Player, attacked, DBSpell, out AnimationObj);
AnimationObj.Damage = Calculate.Base.CalculateLevel(AnimationObj.Damage, ClientSpell.Level);
ReceiveAttack.Player.Execute(AnimationObj, user, attacked);
MsgSpell.Targets.Enqueue(AnimationObj);
here is the based
Code:
public static uint CalculateLevell(uint Damage, byte SpellLevel)
{
Damage += (uint)(Damage * (SpellLevel * 2) / 100);
return Damage;
}
Thank you.