Sync with L2jServer HighFive Apr 10th 2015.
This commit is contained in:
@@ -74,7 +74,7 @@ public abstract class AbstractInstance extends AbstractNpcAI
|
||||
return;
|
||||
}
|
||||
|
||||
if (checkConditions(player))
|
||||
if (checkConditions(player, templateId))
|
||||
{
|
||||
instance.setInstanceId(InstanceManager.getInstance().createDynamicInstance(template));
|
||||
instance.setTemplateId(templateId);
|
||||
@@ -190,6 +190,11 @@ public abstract class AbstractInstance extends AbstractNpcAI
|
||||
|
||||
protected abstract void onEnterInstance(L2PcInstance player, InstanceWorld world, boolean firstEntrance);
|
||||
|
||||
protected boolean checkConditions(L2PcInstance player, int templateId)
|
||||
{
|
||||
return checkConditions(player);
|
||||
}
|
||||
|
||||
protected boolean checkConditions(L2PcInstance player)
|
||||
{
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user