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.enums.ShotType; | ||||
| import org.l2jmobius.gameserver.model.StatsSet; | ||||
| import org.l2jmobius.gameserver.model.actor.Creature; | ||||
| @@ -61,7 +62,7 @@ public final class DeathLink extends AbstractEffect | ||||
| 		final boolean sps = skill.useSpiritShot() && effector.isChargedShot(ShotType.SPIRITSHOTS); | ||||
| 		final boolean bss = skill.useSpiritShot() && effector.isChargedShot(ShotType.BLESSED_SPIRITSHOTS); | ||||
| 		 | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath()) | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND) | ||||
| 		{ | ||||
| 			effected.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; | ||||
| @@ -62,7 +63,7 @@ public final class MagicalAbnormalDispelAttack extends AbstractEffect | ||||
| 			return; | ||||
| 		} | ||||
| 		 | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath()) | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND) | ||||
| 		{ | ||||
| 			effected.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.Attackable; | ||||
| @@ -63,7 +64,7 @@ public final class MagicalAttack extends AbstractEffect | ||||
| 			return; | ||||
| 		} | ||||
| 		 | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath()) | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND) | ||||
| 		{ | ||||
| 			effected.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; | ||||
| @@ -58,7 +59,7 @@ public final class MagicalAttackByAbnormal extends AbstractEffect | ||||
| 			return; | ||||
| 		} | ||||
| 		 | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath()) | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND) | ||||
| 		{ | ||||
| 			effected.stopFakeDeath(true); | ||||
| 		} | ||||
|   | ||||
| @@ -20,6 +20,7 @@ import java.util.Collections; | ||||
| import java.util.HashSet; | ||||
| import java.util.Set; | ||||
|  | ||||
| import org.l2jmobius.Config; | ||||
| import org.l2jmobius.gameserver.enums.ShotType; | ||||
| import org.l2jmobius.gameserver.model.StatsSet; | ||||
| import org.l2jmobius.gameserver.model.actor.Creature; | ||||
| @@ -78,7 +79,7 @@ public final class MagicalAttackByAbnormalSlot extends AbstractEffect | ||||
| 			return; | ||||
| 		} | ||||
| 		 | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath()) | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND) | ||||
| 		{ | ||||
| 			effected.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; | ||||
| @@ -55,7 +56,7 @@ public final class MagicalAttackRange extends AbstractEffect | ||||
| 	@Override | ||||
| 	public void instant(Creature effector, Creature effected, Skill skill, ItemInstance item) | ||||
| 	{ | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath()) | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND) | ||||
| 		{ | ||||
| 			effected.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; | ||||
| @@ -60,7 +61,7 @@ public final class MagicalSoulAttack extends AbstractEffect | ||||
| 			return; | ||||
| 		} | ||||
| 		 | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath()) | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND) | ||||
| 		{ | ||||
| 			effected.stopFakeDeath(true); | ||||
| 		} | ||||
|   | ||||
| @@ -20,6 +20,7 @@ import java.util.Collections; | ||||
| import java.util.HashSet; | ||||
| import java.util.Set; | ||||
|  | ||||
| import org.l2jmobius.Config; | ||||
| import org.l2jmobius.gameserver.enums.ShotType; | ||||
| import org.l2jmobius.gameserver.model.StatsSet; | ||||
| import org.l2jmobius.gameserver.model.actor.Attackable; | ||||
| @@ -102,7 +103,7 @@ public final class PhysicalAttack extends AbstractEffect | ||||
| 			return; | ||||
| 		} | ||||
| 		 | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath()) | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND) | ||||
| 		{ | ||||
| 			effected.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.Attackable; | ||||
| @@ -75,7 +76,7 @@ public final class PhysicalAttackSaveHp extends AbstractEffect | ||||
| 			return; | ||||
| 		} | ||||
| 		 | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath()) | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND) | ||||
| 		{ | ||||
| 			effected.stopFakeDeath(true); | ||||
| 		} | ||||
|   | ||||
| @@ -19,6 +19,7 @@ package handlers.effecthandlers; | ||||
| import java.util.HashMap; | ||||
| import java.util.Map; | ||||
|  | ||||
| import org.l2jmobius.Config; | ||||
| import org.l2jmobius.gameserver.enums.ShotType; | ||||
| import org.l2jmobius.gameserver.model.StatsSet; | ||||
| import org.l2jmobius.gameserver.model.actor.Attackable; | ||||
| @@ -90,7 +91,7 @@ public final class PhysicalAttackWeaponBonus extends AbstractEffect | ||||
| 			return; | ||||
| 		} | ||||
| 		 | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath()) | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND) | ||||
| 		{ | ||||
| 			effected.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.Attackable; | ||||
| @@ -80,7 +81,7 @@ public final class PhysicalSoulAttack extends AbstractEffect | ||||
| 			return; | ||||
| 		} | ||||
| 		 | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath()) | ||||
| 		if (effected.isPlayer() && effected.getActingPlayer().isFakeDeath() && Config.FAKE_DEATH_DAMAGE_STAND) | ||||
| 		{ | ||||
| 			effected.stopFakeDeath(true); | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment