Sync with L2jServer HighFive Nov 28th 2015.

This commit is contained in:
MobiusDev
2015-11-29 11:21:55 +00:00
parent fd9e7a99fd
commit cc94608578
507 changed files with 4128 additions and 79 deletions

View File

@@ -1358,6 +1358,13 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
*/
private boolean doAttackHitByPole(Attack attack, L2Character target, int sAtk)
{
boolean hitted = doAttackHitSimple(attack, target, 100, sAtk);
if (isAffected(EffectFlag.SINGLE_TARGET))
{
return hitted;
}
// double angleChar;
int maxRadius = getStat().getPhysicalAttackRange();
int maxAngleDiff = getStat().getPhysicalAttackAngle();
@@ -1391,8 +1398,6 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
int attackcount = 0;
// if (angleChar <= 0) angleChar += 360;
boolean hitted = doAttackHitSimple(attack, target, 100, sAtk);
double attackpercent = 85;
L2Character temp;
Collection<L2Object> objs = getKnownList().getKnownObjects().values();

View File

@@ -44,6 +44,7 @@ public enum EffectFlag
STUNNED,
BETRAYED,
PARALYZED,
SINGLE_TARGET,
BLOCK_RESURRECTION,
SERVITOR_SHARE;

View File

@@ -65,6 +65,7 @@ public enum L2EffectType
SLEEP,
STEAL_ABNORMAL,
STUN,
SINGLE_TARGET,
SUMMON,
SUMMON_PET,
SUMMON_NPC,

View File

@@ -1773,6 +1773,11 @@ public final class Formulas
int defence_attribute = target.getDefenseElementValue(attacker.getAttackElement());
if (attack_attribute <= defence_attribute)
{
return 1;
}
double attack_attribute_mod = 0;
double defence_attribute_mod = 0;