MaxHp should check if effected is not HP blocked in the task.

This commit is contained in:
MobiusDev
2019-02-08 02:56:50 +00:00
parent c97bc5f513
commit 97ee89b3e9
10 changed files with 40 additions and 40 deletions

View File

@@ -41,10 +41,10 @@ public class MaxHp extends AbstractStatEffect
public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
{ {
if (_heal) if (_heal)
{
if (!effected.isHpBlocked())
{ {
ThreadPool.schedule(() -> ThreadPool.schedule(() ->
{
if (!effected.isHpBlocked())
{ {
switch (_mode) switch (_mode)
{ {
@@ -59,8 +59,8 @@ public class MaxHp extends AbstractStatEffect
break; break;
} }
} }
}
}, 100); }, 100);
} }
} }
} }
}

View File

@@ -41,10 +41,10 @@ public class MaxHp extends AbstractStatEffect
public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
{ {
if (_heal) if (_heal)
{
if (!effected.isHpBlocked())
{ {
ThreadPool.schedule(() -> ThreadPool.schedule(() ->
{
if (!effected.isHpBlocked())
{ {
switch (_mode) switch (_mode)
{ {
@@ -59,8 +59,8 @@ public class MaxHp extends AbstractStatEffect
break; break;
} }
} }
}
}, 100); }, 100);
} }
} }
} }
}

View File

@@ -41,10 +41,10 @@ public class MaxHp extends AbstractStatEffect
public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
{ {
if (_heal) if (_heal)
{
if (!effected.isHpBlocked())
{ {
ThreadPool.schedule(() -> ThreadPool.schedule(() ->
{
if (!effected.isHpBlocked())
{ {
switch (_mode) switch (_mode)
{ {
@@ -59,8 +59,8 @@ public class MaxHp extends AbstractStatEffect
break; break;
} }
} }
}
}, 100); }, 100);
} }
} }
} }
}

View File

@@ -41,10 +41,10 @@ public class MaxHp extends AbstractStatEffect
public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
{ {
if (_heal) if (_heal)
{
if (!effected.isHpBlocked())
{ {
ThreadPool.schedule(() -> ThreadPool.schedule(() ->
{
if (!effected.isHpBlocked())
{ {
switch (_mode) switch (_mode)
{ {
@@ -59,8 +59,8 @@ public class MaxHp extends AbstractStatEffect
break; break;
} }
} }
}
}, 100); }, 100);
} }
} }
} }
}

View File

@@ -41,10 +41,10 @@ public class MaxHp extends AbstractStatEffect
public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
{ {
if (_heal) if (_heal)
{
if (!effected.isHpBlocked())
{ {
ThreadPool.schedule(() -> ThreadPool.schedule(() ->
{
if (!effected.isHpBlocked())
{ {
switch (_mode) switch (_mode)
{ {
@@ -59,8 +59,8 @@ public class MaxHp extends AbstractStatEffect
break; break;
} }
} }
}
}, 100); }, 100);
} }
} }
} }
}

View File

@@ -41,10 +41,10 @@ public class MaxHp extends AbstractStatEffect
public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
{ {
if (_heal) if (_heal)
{
if (!effected.isHpBlocked())
{ {
ThreadPool.schedule(() -> ThreadPool.schedule(() ->
{
if (!effected.isHpBlocked())
{ {
switch (_mode) switch (_mode)
{ {
@@ -59,8 +59,8 @@ public class MaxHp extends AbstractStatEffect
break; break;
} }
} }
}
}, 100); }, 100);
} }
} }
} }
}

View File

@@ -41,10 +41,10 @@ public class MaxHp extends AbstractStatEffect
public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
{ {
if (_heal) if (_heal)
{
if (!effected.isHpBlocked())
{ {
ThreadPool.schedule(() -> ThreadPool.schedule(() ->
{
if (!effected.isHpBlocked())
{ {
switch (_mode) switch (_mode)
{ {
@@ -59,8 +59,8 @@ public class MaxHp extends AbstractStatEffect
break; break;
} }
} }
}
}, 100); }, 100);
} }
} }
} }
}

View File

@@ -41,10 +41,10 @@ public class MaxHp extends AbstractStatEffect
public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
{ {
if (_heal) if (_heal)
{
if (!effected.isHpBlocked())
{ {
ThreadPool.schedule(() -> ThreadPool.schedule(() ->
{
if (!effected.isHpBlocked())
{ {
switch (_mode) switch (_mode)
{ {
@@ -59,8 +59,8 @@ public class MaxHp extends AbstractStatEffect
break; break;
} }
} }
}
}, 100); }, 100);
} }
} }
} }
}

View File

@@ -41,10 +41,10 @@ public class MaxHp extends AbstractStatEffect
public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
{ {
if (_heal) if (_heal)
{
if (!effected.isHpBlocked())
{ {
ThreadPool.schedule(() -> ThreadPool.schedule(() ->
{
if (!effected.isHpBlocked())
{ {
switch (_mode) switch (_mode)
{ {
@@ -59,8 +59,8 @@ public class MaxHp extends AbstractStatEffect
break; break;
} }
} }
}
}, 100); }, 100);
} }
} }
} }
}

View File

@@ -41,10 +41,10 @@ public class MaxHp extends AbstractStatEffect
public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item) public void continuousInstant(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
{ {
if (_heal) if (_heal)
{
if (!effected.isHpBlocked())
{ {
ThreadPool.schedule(() -> ThreadPool.schedule(() ->
{
if (!effected.isHpBlocked())
{ {
switch (_mode) switch (_mode)
{ {
@@ -59,8 +59,8 @@ public class MaxHp extends AbstractStatEffect
break; break;
} }
} }
}
}, 100); }, 100);
} }
} }
} }
}