Prevent adding effects on dead creatures.

This commit is contained in:
MobiusDev 2017-09-27 13:02:11 +00:00
parent 0b4aa688a8
commit 91905ca592
4 changed files with 24 additions and 0 deletions

View File

@ -735,6 +735,12 @@ public final class CharEffectList
return;
}
// Prevent adding and initializing buffs/effects on dead creatures.
if (info.getEffected().isDead())
{
return;
}
if (info.getSkill() == null)
{
// Only options are without skills.

View File

@ -735,6 +735,12 @@ public final class CharEffectList
return;
}
// Prevent adding and initializing buffs/effects on dead creatures.
if (info.getEffected().isDead())
{
return;
}
if (info.getSkill() == null)
{
// Only options are without skills.

View File

@ -735,6 +735,12 @@ public final class CharEffectList
return;
}
// Prevent adding and initializing buffs/effects on dead creatures.
if (info.getEffected().isDead())
{
return;
}
if (info.getSkill() == null)
{
// Only options are without skills.

View File

@ -735,6 +735,12 @@ public final class CharEffectList
return;
}
// Prevent adding and initializing buffs/effects on dead creatures.
if (info.getEffected().isDead())
{
return;
}
if (info.getSkill() == null)
{
// Only options are without skills.