quest decoration fix

This commit is contained in:
mark 2006-06-21 00:44:19 +00:00
parent 4cfc1fe38b
commit 28979ea3e5
2 changed files with 14 additions and 6 deletions

View file

@ -1,5 +1,5 @@
# Candle
HonorCandle 0x1433
HonorCandle 0x1433 (Unlit; Unprotected)
419 731 17
420 731 17
422 731 17

View file

@ -417,15 +417,23 @@ namespace Server.Commands
}
else if ( item is BaseLight )
{
bool unlit = false;
bool unlit, unprotected = false;
for ( int i = 0; !unlit && i < m_Params.Length; ++i )
unlit = ( m_Params[i] == "Unlit" );
for ( int i = 0; i < m_Params.Length; ++i )
{
if ( !unlit && m_Params[i] == "Unlit" )
unlit = true;
else if ( !unprotected && m_Params[i] == "Unprotected" )
unprotected = true;
if ( unlit && unprotected )
break;
}
if ( !unlit )
((BaseLight)item).Ignite();
((BaseLight)item).Protected = true;
if ( !unprotected )
((BaseLight)item).Protected = true;
if ( m_ItemID > 0 )
item.ItemID = m_ItemID;