Do not add continuous effect if target just died from the initial effect.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment 2021-02-06 20:32:25 +00:00
parent 450a020635
commit 8833a59e55
19 changed files with 114 additions and 0 deletions

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -263,6 +263,12 @@ public class BuffInfo
// Call on start.
effect.onStart(this);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -263,6 +263,12 @@ public class BuffInfo
// Call on start.
effect.onStart(this);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{

View File

@ -330,6 +330,12 @@ public class BuffInfo
// Call on start.
effect.onStart(_effector, _effected, _skill, _item);
// Do not add continuous effect if target just died from the initial effect, otherwise they'll be ticked forever.
if (_effected.isDead())
{
continue;
}
// If it's a continuous effect, if has ticks schedule a task with period, otherwise schedule a simple task to end it.
if (effect.getTicks() > 0)
{