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
|
|
@ -900,12 +900,13 @@ namespace Server.Factions
|
|||
ClearSkillLoss( (Mobile) state );
|
||||
}
|
||||
|
||||
public static void ClearSkillLoss( Mobile mob )
|
||||
public static bool ClearSkillLoss( Mobile mob )
|
||||
{
|
||||
SkillLossContext context = (SkillLossContext)m_SkillLoss[mob];
|
||||
|
||||
if ( context == null )
|
||||
return;
|
||||
if ( context == null ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
m_SkillLoss.Remove( mob );
|
||||
|
||||
|
|
@ -915,6 +916,8 @@ namespace Server.Factions
|
|||
mob.RemoveSkillMod( (SkillMod) mods[i] );
|
||||
|
||||
context.m_Timer.Stop();
|
||||
|
||||
return true;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue