public override void OnDamage(int amount, Mobile from, bool willKill) { if (from != null && 0.01 >= Utility.RandomDouble()) { BaseCreature spawn = new ConfusedFairy(); spawn.Team = this.Team; spawn.MoveToWorld(from.Location, from.Map); spawn.Combatant = from; spawn.Say("Here I am my master"); } base.OnDamage(amount, from, willKill); }
public override void OnDamage(int amount, Mobile from, bool willKill) { if (from != null && 0.01 >= Utility.RandomDouble() ) { BaseCreature spawn = new ConfusedFairy(); spawn.Team = this.Team; spawn.MoveToWorld( from.Location, from.Map ); spawn.Combatant = from; spawn.Say("Here I am my master"); } base.OnDamage(amount, from, willKill); }