|
المشاركات 113 |
+التقييم 0.06 |
تاريخ التسجيل Feb 2020 |
الاقامة |
نظام التشغيل |
رقم العضوية 3470 |
case (ushort)14500:
{
user.Send(stream.InteractionCreate(&Attack));
MsgSpellAnimation MsgSpell = new MsgSpellAnimation(user.Entity.UID, user.Entity.UID, Attack.X, Attack.Y, ClientSpell.ID, ClientSpell.Level, ClientSpell.UseSpellSoul);
if (user.Team != null)
{
foreach (Client.GameState teammate in user.Team.Teammates)
{
if (teammate != null)
{
user.Entity.AddSpellFlag(MsgUpdate.Flags.FineRain, (int)DBSpell.Duration, true, DBSpell.CoolDown);
teammate.Entity.FineRain = Time32.Now;
teammate.Entity.FineRainHP = (uint)DBSpell.Damage;
teammate.Entity.FineRainHPMax = user.Entity.MaxHitpoints;
teammate.Entity.FineRainTime = (uint)DBSpell.Duration;
teammate.Entity.MaxHitpoints += (uint)DBSpell.Damage;
teammate.Entity.Hitpoints += (uint)DBSpell.Damage;
teammate.Entity.FineRainHPMin = (uint)(DBSpell.Damage / DBSpell.Duration);
}
}
}
MsgSpell.Targets.Enqueue(new MsgSpellAnimation.SpellObj(user.Entity.UID, 0, MsgAttackPacket.AttackEffect.None));
user.SendScreen(stream, true);
MsgSpell.SetStream(stream);
MsgSpell.Send(user);
Updates.UpdateSpell.CheckUpdate(stream, user, Attack, 500, DBSpells);
break;
}
#region HPRuneWater
if (!client.Entity.Dead && Time32.Now >= client.Entity.FineRain.AddSeconds(1) && client.Entity.FineRainTime > 0)
{
if (client.Entity.FineRainHP >= (uint)(client.Entity.FineRainHPMin))
{
client.Entity.FineRainHP -= (uint)(client.Entity.FineRainHPMin);
}
else
{
client.Entity.FineRainHP = 0;
}
if (client.Entity.FineRainHPMax <= client.Entity.MaxHitpoints)
{
client.Entity.MaxHitpoints -= (uint)(client.Entity.FineRainHPMin);
client.Entity.Hitpoints -= (uint)(client.Entity.FineRainHPMin);
WindowsStats WS = new WindowsStats(client);
WS.Send(client);
}
else
{
client.Entity.MaxHitpoints = (uint)(client.Entity.FineRainHPMax);
client.Entity.Hitpoints = (uint)(client.Entity.FineRainHPMax);
WindowsStats WS = new WindowsStats(client);
WS.Send(client);
}
client.Entity.FineRainTime--;
if (client.Entity.FineRainTime == 1)
{
client.Entity.RemoveFlag(MsgUpdate.Flags.FineRain);
}
}
#endregion