Addition of configurations for fake death target.

This commit is contained in:
MobiusDevelopment
2019-04-27 08:58:16 +00:00
parent 1014855f61
commit 223da2f310
177 changed files with 576 additions and 186 deletions

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}