Faction.ClearSkillLoss now returns true or false indicating if the player was actually under skill loss
Refactored some gump methods to account for the respective core changes
This commit is contained in:
parent
6095f152cf
commit
51345e02a0
4 changed files with 18 additions and 41 deletions
|
|
@ -1079,21 +1079,12 @@ namespace Server.Mobiles
|
|||
|
||||
if ( ns != null )
|
||||
{
|
||||
List<Gump> gumps = ns.Gumps;
|
||||
|
||||
for ( int i = 0; i < gumps.Count; ++i )
|
||||
{
|
||||
if ( gumps[i] is ResurrectGump )
|
||||
{
|
||||
if ( Alive )
|
||||
{
|
||||
CloseGump( typeof( ResurrectGump ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
SendLocalizedMessage( 500111 ); // You are frozen and cannot move.
|
||||
return false;
|
||||
}
|
||||
if ( HasGump( typeof( ResurrectGump ) ) ) {
|
||||
if ( Alive ) {
|
||||
CloseGump( typeof( ResurrectGump ) );
|
||||
} else {
|
||||
SendLocalizedMessage( 500111 ); // You are frozen and cannot move.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue