RedBeard
Member
This method doesn't seem to work any ideas?
I want it to work like a regular mass curse spell & check mobiles in a larger range
then spell would normally
I want it to work like a regular mass curse spell & check mobiles in a larger range
then spell would normally
public void MassCurse()
{
Map map = this.Map;
if (map == null)
return;
ArrayList targets = new ArrayList();
foreach (Mobile m in this.GetMobilesInRange(15))
{
if (m == this || !this.CanBeHarmful(m))
continue;
if (m is BaseCreature && (((BaseCreature)m).Controlled || ((BaseCreature)m).Summoned || ((BaseCreature)m).Team != this.Team))
targets.Add(m);
else if (m.Player)
targets.Add(m);
}
for (int i = 0; i < targets.Count; ++i)
{
Mobile m = (Mobile)targets;
this.DoHarmful(m);
//Spells.SpellHelper
SpellHelper.AddStatCurse(m, this, StatType.Str);
SpellHelper.DisableSkillCheck = true;
SpellHelper.AddStatCurse(m, this, StatType.Dex);
SpellHelper.AddStatCurse(m, this, StatType.Int);
SpellHelper.DisableSkillCheck = false;
m.FixedParticles(0x374A, 10, 15, 5028, EffectLayer.Waist);
m.PlaySound(0x1FB);
m.SendMessage("I'm mass cursing you biotches!");
}
}
Last edited: