Addition of configurations for fake death target.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
@@ -51,7 +52,7 @@ public final class CpDamPercent extends AbstractEffect
|
||||
return;
|
||||
}
|
||||
|
||||
if (info.getEffected().isPlayer() && info.getEffected().getActingPlayer().isFakeDeath())
|
||||
if (info.getEffected().isPlayer() && info.getEffected().getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND)
|
||||
{
|
||||
info.getEffected().stopFakeDeath(true);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.enums.ShotType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
@@ -64,7 +65,7 @@ public final class DeathLink extends AbstractEffect
|
||||
final boolean sps = info.getSkill().useSpiritShot() && creature.isChargedShot(ShotType.SPIRITSHOTS);
|
||||
final boolean bss = info.getSkill().useSpiritShot() && creature.isChargedShot(ShotType.BLESSED_SPIRITSHOTS);
|
||||
|
||||
if (target.isPlayer() && target.getActingPlayer().isFakeDeath())
|
||||
if (target.isPlayer() && target.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND)
|
||||
{
|
||||
target.stopFakeDeath(true);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.enums.ShotType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
@@ -62,7 +63,7 @@ public final class MagicalAttack extends AbstractEffect
|
||||
return;
|
||||
}
|
||||
|
||||
if (target.isPlayer() && target.getActingPlayer().isFakeDeath())
|
||||
if (target.isPlayer() && target.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND)
|
||||
{
|
||||
target.stopFakeDeath(true);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.enums.ShotType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
@@ -61,7 +62,7 @@ public final class MagicalAttackByAbnormal extends AbstractEffect
|
||||
return;
|
||||
}
|
||||
|
||||
if (target.isPlayer() && target.getActingPlayer().isFakeDeath())
|
||||
if (target.isPlayer() && target.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND)
|
||||
{
|
||||
target.stopFakeDeath(true);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.enums.ShotType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
@@ -61,7 +62,7 @@ public final class MagicalSoulAttack extends AbstractEffect
|
||||
return;
|
||||
}
|
||||
|
||||
if (target.isPlayer() && target.getActingPlayer().isFakeDeath())
|
||||
if (target.isPlayer() && target.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND)
|
||||
{
|
||||
target.stopFakeDeath(true);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ShotType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
@@ -77,7 +78,7 @@ public final class PhysicalAttack extends AbstractEffect
|
||||
return;
|
||||
}
|
||||
|
||||
if (target.isPlayer() && target.getActingPlayer().isFakeDeath())
|
||||
if (target.isPlayer() && target.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND)
|
||||
{
|
||||
target.stopFakeDeath(true);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
package handlers.effecthandlers;
|
||||
|
||||
import org.l2jmobius.Config;
|
||||
import org.l2jmobius.gameserver.enums.ShotType;
|
||||
import org.l2jmobius.gameserver.model.StatsSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
@@ -77,7 +78,7 @@ public final class PhysicalSoulAttack extends AbstractEffect
|
||||
return;
|
||||
}
|
||||
|
||||
if (target.isPlayer() && target.getActingPlayer().isFakeDeath())
|
||||
if (target.isPlayer() && target.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND)
|
||||
{
|
||||
target.stopFakeDeath(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user