Some cleanups. (might break build for scripts as they are a WIP)
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Game
|
||||
void HandleBlackMarketOpen(BlackMarketOpen blackMarketOpen)
|
||||
{
|
||||
Creature unit = GetPlayer().GetNPCIfCanInteractWith(blackMarketOpen.Guid, NPCFlags.BlackMarket, NPCFlags2.BlackMarketView);
|
||||
if (!unit)
|
||||
if (unit == null)
|
||||
{
|
||||
Log.outDebug(LogFilter.Network, "WORLD: HandleBlackMarketHello - {0} not found or you can't interact with him.", blackMarketOpen.Guid.ToString());
|
||||
return;
|
||||
@@ -45,7 +45,7 @@ namespace Game
|
||||
return;
|
||||
|
||||
Creature unit = GetPlayer().GetNPCIfCanInteractWith(blackMarketRequestItems.Guid, NPCFlags.BlackMarket, NPCFlags2.BlackMarketView);
|
||||
if (!unit)
|
||||
if (unit == null)
|
||||
{
|
||||
Log.outDebug(LogFilter.Network, "WORLD: HandleBlackMarketRequestItems - {0} not found or you can't interact with him.", blackMarketRequestItems.Guid.ToString());
|
||||
return;
|
||||
@@ -64,7 +64,7 @@ namespace Game
|
||||
|
||||
Player player = GetPlayer();
|
||||
Creature unit = player.GetNPCIfCanInteractWith(blackMarketBidOnItem.Guid, NPCFlags.BlackMarket, NPCFlags2.None);
|
||||
if (!unit)
|
||||
if (unit == null)
|
||||
{
|
||||
Log.outDebug(LogFilter.Network, "WORLD: HandleBlackMarketBidOnItem - {0} not found or you can't interact with him.", blackMarketBidOnItem.Guid.ToString());
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user