Target corpse ally should include dead characters.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user