ÄÚµå : |
//ADDED for Orange Petals
public bool Petals;
public override bool CheckPoisonImmunity( Mobile from, Poison poison )
{
if (Petals)
return (poison.Level < 3);
return base.CheckPoisonImmunity( from, poison );
}
public override void OnPoisonImmunity(Mobile from, Poison poison)
{
if (Petals)
{
this.PrivateOverheadMessage( MessageType.Regular, 0x3B2, 1053092, this.NetState); // * You feel yourself resisting the effects of the poison *
return;
}
base.OnPoisonImmunity( from,poison );
}
public override void OnPoisoned(Mobile from, Poison poison, Poison oldPoison)
{
if (Petals && (poison != oldPoison))
{
this.PrivateOverheadMessage( MessageType.Regular, 0x3B2, 1053093, this.NetState); // * The strength of the poison overcomes your resistance! *
return;
}
base.OnPoisoned( from, poison, oldPoison);
}
// End added Orange Petals
|