Heritage items, talismans

This commit is contained in:
xavier 2011-07-24 01:47:01 +00:00
parent e7db1fd9f7
commit 129cac945b
109 changed files with 11659 additions and 188 deletions

View file

@ -2567,6 +2567,19 @@ namespace Server.Mobiles
}
}
if ( from != null && Talisman is BaseTalisman )
{
BaseTalisman talisman = (BaseTalisman) Talisman;
if ( talisman.Protection != null && talisman.Protection.Type != null )
{
Type type = talisman.Protection.Type;
if ( type == from.GetType() )
amount *= 1 - (int) ( ( (double) talisman.Protection.Amount ) / 100 );
}
}
base.Damage( amount, from );
}