quest decoration fix
This commit is contained in:
parent
4cfc1fe38b
commit
28979ea3e5
2 changed files with 14 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# Candle
|
||||
HonorCandle 0x1433
|
||||
HonorCandle 0x1433 (Unlit; Unprotected)
|
||||
419 731 17
|
||||
420 731 17
|
||||
422 731 17
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue