Removed AbnormalType check at stopSkillEffects.

This commit is contained in:
MobiusDev
2017-11-30 20:01:55 +00:00
parent 40e9334845
commit a76cf0ad7c
5 changed files with 5 additions and 25 deletions

View File

@@ -445,13 +445,9 @@ public final class CharEffectList
* @param skill the skill
*/
public void stopSkillEffects(boolean removed, Skill skill)
{
// Check for existing abnormal type of the skill to make things quicker. None abnormal type should also work.
if ((skill != null) && hasAbnormalType(skill.getAbnormalType()))
{
stopSkillEffects(removed, skill.getId());
}
}
/**
* Exits all effects created by a specific skill {@code AbnormalType}.<br>

View File

@@ -445,13 +445,9 @@ public final class CharEffectList
* @param skill the skill
*/
public void stopSkillEffects(boolean removed, Skill skill)
{
// Check for existing abnormal type of the skill to make things quicker. None abnormal type should also work.
if ((skill != null) && hasAbnormalType(skill.getAbnormalType()))
{
stopSkillEffects(removed, skill.getId());
}
}
/**
* Exits all effects created by a specific skill {@code AbnormalType}.<br>

View File

@@ -445,13 +445,9 @@ public final class CharEffectList
* @param skill the skill
*/
public void stopSkillEffects(boolean removed, Skill skill)
{
// Check for existing abnormal type of the skill to make things quicker. None abnormal type should also work.
if ((skill != null) && hasAbnormalType(skill.getAbnormalType()))
{
stopSkillEffects(removed, skill.getId());
}
}
/**
* Exits all effects created by a specific skill {@code AbnormalType}.<br>

View File

@@ -445,13 +445,9 @@ public final class CharEffectList
* @param skill the skill
*/
public void stopSkillEffects(boolean removed, Skill skill)
{
// Check for existing abnormal type of the skill to make things quicker. None abnormal type should also work.
if ((skill != null) && hasAbnormalType(skill.getAbnormalType()))
{
stopSkillEffects(removed, skill.getId());
}
}
/**
* Exits all effects created by a specific skill {@code AbnormalType}.<br>

View File

@@ -445,13 +445,9 @@ public final class CharEffectList
* @param skill the skill
*/
public void stopSkillEffects(boolean removed, Skill skill)
{
// Check for existing abnormal type of the skill to make things quicker. None abnormal type should also work.
if ((skill != null) && hasAbnormalType(skill.getAbnormalType()))
{
stopSkillEffects(removed, skill.getId());
}
}
/**
* Exits all effects created by a specific skill {@code AbnormalType}.<br>