Cleanup Expansions

WorldPacketSA should not be used yet. There is much more work to be done and that version has not been looked at in quite some time.
This commit is contained in:
mark 2010-06-17 07:11:43 +00:00
parent 01eee98298
commit 177eb4c6ff
26 changed files with 388 additions and 204 deletions

View file

@ -166,9 +166,12 @@ namespace Server.Items
if ( !from.Player )
return true;
int flags = (from.NetState == null) ? 0 : from.NetState.Flags;
NetState state = from.NetState;
if( RequiresSE && (flags & 0x10) == 0 ) //TODO: Convert to expansionInfo
if ( state == null )
return false;
if( RequiresSE && state.SupportsExpansion( Expansion.SE ) )
{
from.SendLocalizedMessage( 1063456 ); // You must upgrade to Samurai Empire in order to use that ability.
return false;