Target corpse ally should include dead characters.

This commit is contained in:
MobiusDevelopment
2020-09-17 09:11:40 +00:00
parent 3bc2bd9456
commit 96c3ededeb
2 changed files with 4 additions and 4 deletions

View File

@@ -2065,7 +2065,7 @@ public abstract class Skill
final int radius = _skillRadius; final int radius = _skillRadius;
final PlayerInstance player = (PlayerInstance) creature; final PlayerInstance player = (PlayerInstance) creature;
final Clan clan = player.getClan(); final Clan clan = player.getClan();
if (_targetType != SkillTargetType.TARGET_CORPSE_ALLY) // if corpose, the caster is not included if (_targetType != SkillTargetType.TARGET_CORPSE_ALLY) // if corpse, the caster is not included
{ {
if (player.isInOlympiadMode()) if (player.isInOlympiadMode())
{ {
@@ -2089,7 +2089,7 @@ public abstract class Skill
{ {
continue; continue;
} }
if (newPlayer.isDead()) if (newPlayer.isDead() && (_targetType != SkillTargetType.TARGET_CORPSE_ALLY))
{ {
continue; continue;
} }

View File

@@ -2066,7 +2066,7 @@ public abstract class Skill
final int radius = _skillRadius; final int radius = _skillRadius;
final PlayerInstance player = (PlayerInstance) creature; final PlayerInstance player = (PlayerInstance) creature;
final Clan clan = player.getClan(); final Clan clan = player.getClan();
if (_targetType != SkillTargetType.TARGET_CORPSE_ALLY) // if corpose, the caster is not included if (_targetType != SkillTargetType.TARGET_CORPSE_ALLY) // if corpse, the caster is not included
{ {
if (player.isInOlympiadMode()) if (player.isInOlympiadMode())
{ {
@@ -2090,7 +2090,7 @@ public abstract class Skill
{ {
continue; continue;
} }
if (newPlayer.isDead()) if (newPlayer.isDead() && (_targetType != SkillTargetType.TARGET_CORPSE_ALLY))
{ {
continue; continue;
} }