forked from metin2/server
remove isLimitedItem
This commit is contained in:
parent
0a907f41d2
commit
1e362d8507
|
@ -1097,8 +1097,3 @@ bool CArena::RegisterObserverPtr(LPCHARACTER pChar)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool CArenaManager::IsLimitedItem( int lMapIndex, DWORD dwVnum )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -131,8 +131,6 @@ class CArenaManager : public singleton<CArenaManager>
|
|||
|
||||
bool IsArenaMap(DWORD dwMapIndex);
|
||||
MEMBER_IDENTITY IsMember(DWORD dwMapIndex, DWORD PID);
|
||||
|
||||
bool IsLimitedItem( int lMapIndex, DWORD dwVnum );
|
||||
};
|
||||
|
||||
#endif /*__CLASS_ARENA_MANAGER__*/
|
||||
|
|
|
@ -1632,12 +1632,6 @@ bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell)
|
|||
|
||||
SPDLOG_TRACE("USE_ITEM {}, Inven {}, Cell {}, ItemType {}, SubType {}", item->GetName(), bDestInven, wDestCell, item->GetType(), item->GetSubType());
|
||||
|
||||
if ( CArenaManager::instance().IsLimitedItem( GetMapIndex(), item->GetVnum() ) == true )
|
||||
{
|
||||
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You cannot use this item in a duel."));
|
||||
return false;
|
||||
}
|
||||
|
||||
// 아이템 최초 사용 이후부터는 사용하지 않아도 시간이 차감되는 방식 처리.
|
||||
if (-1 != iLimitRealtimeStartFirstUseFlagIndex)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue