public class PlayerMobile : Mobile
{
/////////////////////////////////////
// PlayerMobile Edit #5 //
// All Spells Addition <Start> //
/////////////////////////////////////
public override bool CanSee( Item item )
{
if ( m_DesignContext != null && m_DesignContext.Foundation.IsHiddenToCustomizer( item ) )
return false;
if ( item is BaseHouseTrap )
{
BaseHouseTrap trap = item as BaseHouseTrap;
if(trap.Detected)
return true;
else if (this.AccessLevel!=AccessLevel.Player)
return true;
else if (Spells.First.DetectTrapSpell.UnderEffect( this ))
return true;
else if (this.Skills[SkillName.DetectHidden].Value >= 100.0)
return true;
else if(trap.Placer!=null)
{
if(trap.Placer == this || this.GuildFealty == trap.Placer.GuildFealty || Spells.First.DetectTrapSpell.UnderEffect( this ))
return true;
else
return false;
}
else if ( this != trap.Placer && this.AccessLevel == AccessLevel.Player )
return false;
}
return base.CanSee( item );
}
/////////////////////////////////////
// PlayerMobile Edit #5 //
// All Spells Addition <End> //
/////////////////////////////////////