Hello!
Im trying to get arcane focus from spell arcane circle ever at max level cause our server now have small playerbase,so the OnCast method is:
Tryed few things without resuslts,any advice?Thank you!
Im trying to get arcane focus from spell arcane circle ever at max level cause our server now have small playerbase,so the OnCast method is:
C#:
public override void OnCast()
{
if (CheckSequence())
{
Caster.FixedParticles(0x3779, 10, 20, 0x0, EffectLayer.Waist);
Caster.PlaySound(0x5C0);
List<Mobile> Arcanists = GetArcanists();
TimeSpan duration = TimeSpan.FromHours(Math.Max(1, (int)(Caster.Skills.Spellweaving.Value / 24)));
duration += TimeSpan.FromHours(Math.Min(6, Arcanists.Count));
int strengthBonus = Math.Min(IsBonus(Caster.Location, Caster.Map) ? 6 : 5, Arcanists.Sum(m => GetStrength(m))); // Math.Min(Arcanists.Count, IsBonus(Caster.Location, Caster.Map) ? 6 : 5); //The Sanctuary is a special, single location place
for (int i = 0; i < Arcanists.Count; i++)
{
GiveArcaneFocus(Arcanists[i], duration, strengthBonus);
}
}
FinishSequence();
}