reifus
Member
- ServUO Version
- Publish 57
- Ultima Expansion
- Mondain's Legacy
Hey everyone, I’ve messing around with this for a while and I can’t get it working. I managed to get the spell to cast on the mob but he will cast on itself.
Any help much appreciated:
Any help much appreciated:
```
public override void OnGotMeleeAttack(Mobile m)
{
var chance = Utility.RandomDouble() * 1000;
if (chance <= 100) // 10%
{
Say("Pain Spike");
Timer.DelayCall(TimeSpan.FromSeconds(1), () => {
PainSpikeSpell spell = new PainSpikeSpell(this, null);
spell.Cast();
this.Target?.Invoke(this, m);
});
}
}
```