public override bool DoMountAbility(int damage, Mobile attacker)
{
if (this.Rider == null || attacker == null) //sanity
return false;

if (this.Rider.Poisoned && ((this.Rider.Hits - damage) < 40))
{
Poison p = this.Rider.Poison;

if (p != null)
{
int chanceToCure = 1000 + (int)(this.Skills[SkillName.Magery].Value * 75) - ((p.RealLevel + 1) * (Core.AOS ? (p.RealLevel < 4 ? 3300 : 3100) : 1750));
chanceToCure /= 100;

if (chanceToCure > Utility.Random(100))
{
if (this.Rider.CurePoison(this)) //TODO: Confirm if mount is the one flagged for curing it or the rider is
{
this.Rider.LocalOverheadMessage(Server.Network.MessageType.Regular, 0x3B2, true, "Your mount senses you are in danger and aids you with magic.");
this.Rider.FixedParticles(0x373A, 10, 15, 5012, EffectLayer.Waist);
this.Rider.PlaySound(0x1E0); // Cure spell effect.
this.Rider.PlaySound(0xA9); // Unicorn's whinny.

return true;
}
}
}
}

and
public override TimeSpan MountAbilityDelay
{
get
{
return TimeSpan.FromMinutes(1.0);
}
}

Both the unicorn and kirin will not use thier abilities they are stuck at 1/1/0001 12 am
 
Back