case (ushort)Enums.SpellID.IronShield:
case (ushort)Enums.SpellID.IronShield: { user.Send(stream.InteractionCreate(&Attack)); if (user.Entity.ContainFlag(MsgUpdate.Flags.IronShield)) { user.Entity.RemoveFlag(MsgUpdate.Flags.IronShield); break; } MsgSpellAnimation MsgSpell = new MsgSpellAnimation(user.Entity.UID, user.Entity.UID, Attack.X, Attack.Y, ClientSpell.ID, ClientSpell.Level, ClientSpell.UseSpellSoul); if (user.Entity.UID == Attack.OpponentUID) { user.Entity.IronShieldDefence = (uint)DBSpell.DamageOnMonster; user.Entity.AddSpellFlag(MsgUpdate.Flags.IronShield, (int)15, true, DBSpell.CoolDown); MsgSpell.Targets.Enqueue(new MsgSpellAnimation.SpellObj(user.Entity.UID, 0, MsgAttackPacket.AttackEffect.None)); } MsgSpell.SetStream(stream); MsgSpell.Send(user); Updates.UpdateSpell.CheckUpdate(stream, user, Attack, 0, DBSpells); break; }