Do not add continuous effect if target just died from the initial effect.
Contributed by Sahar.
This commit is contained in:
parent
450a020635
commit
8833a59e55
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user