Jelajahi Sumber

Fixed pvp flag for skills that have effectPoint = 0.

Reported by: ShinichiYao
Adry85 7 tahun lalu
induk
melakukan
e99b948ffc

+ 1 - 1
src/main/java/com/l2jserver/gameserver/model/actor/L2Character.java

@@ -5794,7 +5794,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
 					// EVT_ATTACKED and PvPStatus
 					if (target instanceof L2Character)
 					{
-						if (skill.isBad())
+						if (skill.getEffectPoint() <= 0)
 						{
 							if (target.isPlayable() || target.isTrap())
 							{

+ 1 - 1
src/main/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java

@@ -7492,7 +7492,7 @@ public final class L2PcInstance extends L2Playable
 	 * <li>Check if the skill isn't toggle and is offensive</li>
 	 * <li>Check if the target is in the skill cast range</li>
 	 * <li>Check if the skill is Spoil type and if the target isn't already spoiled</li>
-	 * <li>Check if the caster owns enought consummed Item, enough HP and MP to cast the skill</li>
+	 * <li>Check if the caster owns enough consumed Item, enough HP and MP to cast the skill</li>
 	 * <li>Check if the caster isn't sitting</li>
 	 * <li>Check if all skills are enabled and this skill is enabled</li>
 	 * <li>Check if the caster own the weapon needed</li>