|
#region Attacking
if (attacker.OnSuperman())
if (!pass && attack.AttackType != Attack.Magic)
{
int milliSeconds = 900 - attacker.Agility - decrease;
if (milliSeconds < 0 || milliSeconds > 5000)
milliSeconds = 0;
if (Time32.Now < attacker.AttackStamp.AddMilliseconds(milliSeconds))
return;
attacker.AttackStamp = Time32.Now;
}
bool doWep1Spell = false, doWep2Spell = false;
#region Extract attack information
if (!pass && attack.AttackType == Attack.Magic)
{
if (!(doWep1Spell || doWep2Spell))
{
if (SpellID == 11960 || SpellID == 1045 || SpellID == 1046 || SpellID == 11005 || SpellID == 11000 || SpellID == 1100) // FB and SS
{
//do checks
}
else
{
int milliSeconds = 1000 - attacker.Agility - decrease;
if (milliSeconds < 0 || milliSeconds > 5000)
milliSeconds = 0;
if (Time32.Now < attacker.AttackStamp.AddMilliseconds(milliSeconds))
return;
}
attacker.AttackStamp = Time32.Now;
}
}
#region Attacking
if (attacker.OnSuperman())
if (!pass && attack.AttackType != Attack.Magic)
{
int milliSeconds = 900 - attacker.Agility - decrease;
if (milliSeconds < 0 || milliSeconds > 5000)
milliSeconds = 0;
if (Time32.Now < attacker.AttackStamp.AddMilliseconds(milliSeconds))
return;
attacker.AttackStamp = Time32.Now;
}
bool doWep1Spell = false, doWep2Spell = false;
#region Extract attack information
if (!pass && attack.AttackType == Attack.Magic)
{
if (!(doWep1Spell || doWep2Spell))
{
if (SpellID == 11960 || SpellID == 1045 || SpellID == 1046 || SpellID == 11005 || SpellID == 11000 || SpellID == 1100) // FB and SS
{
//do checks
}
else
{
int milliSeconds = 1000 - attacker.Agility - decrease;
if (milliSeconds < 0 || milliSeconds > 5000)
milliSeconds = 0;
if (Time32.Now < attacker.AttackStamp.AddMilliseconds(milliSeconds))
return;
}
attacker.AttackStamp = Time32.Now;
}
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
حل مشكله الاجتلى بطئ | Tefa | تطوير سيرفرات كونكر | 4 | 2019-10-24 02:14 AM |