Tefa
2020-03-15, 11:50 PM
تحت الاسكله ضيف
if (ClientSpell.Level < DBSpells.Count - 1)
{
ClientSpell.Experience += (int)(AnimationObj.Damage * Program.ExpRateSpell);
if (ClientSpell.Experience > DBSpells[ClientSpell.Level].Experience)
{
ClientSpell.Level++;
ClientSpell.Experience = 0;
}
user.Send(stream.SpellCreate(ClientSpell));
user.MySpells.ClientSpells[ClientSpell.ID] = ClientSpell;
}
if (ClientSpell.Level < DBSpells.Count - 1)
{
ClientSpell.Experience += (int)(AnimationObj.Damage * Program.ExpRateSpell);
if (ClientSpell.Experience > DBSpells[ClientSpell.Level].Experience)
{
ClientSpell.Level++;
ClientSpell.Experience = 0;
}
user.Send(stream.SpellCreate(ClientSpell));
user.MySpells.ClientSpells[ClientSpell.ID] = ClientSpell;
}