Addition of AutoAttackDamageBonus effect.
Contributed by nasseka.
This commit is contained in:
+1
@@ -48,6 +48,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
Vendored
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1296,14 +1296,9 @@
|
|||||||
<AIRBIND>90</AIRBIND>
|
<AIRBIND>90</AIRBIND>
|
||||||
<AGGRESSION>90</AGGRESSION>
|
<AGGRESSION>90</AGGRESSION>
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="TriggerSkillByAttack">
|
<effect name="AutoAttackDamageBonus">
|
||||||
<!-- Damage Up -->
|
<amount>400</amount>
|
||||||
<chance>100</chance>
|
<mode>PER</mode>
|
||||||
<targetType>TARGET</targetType>
|
|
||||||
<affectScope>SINGLE</affectScope>
|
|
||||||
<minDamage>100</minDamage>
|
|
||||||
<skillId>30521</skillId> <!-- Damage Up -->
|
|
||||||
<skillLevel>1</skillLevel>
|
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="IgnoreDeath" />
|
<effect name="IgnoreDeath" />
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public enum Stat
|
|||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
+1
@@ -48,6 +48,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1431,14 +1431,9 @@
|
|||||||
<AIRBIND>90</AIRBIND>
|
<AIRBIND>90</AIRBIND>
|
||||||
<AGGRESSION>90</AGGRESSION>
|
<AGGRESSION>90</AGGRESSION>
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="TriggerSkillByAttack">
|
<effect name="AutoAttackDamageBonus">
|
||||||
<!-- Damage Up -->
|
<amount>400</amount>
|
||||||
<chance>100</chance>
|
<mode>PER</mode>
|
||||||
<targetType>TARGET</targetType>
|
|
||||||
<affectScope>SINGLE</affectScope>
|
|
||||||
<minDamage>100</minDamage>
|
|
||||||
<skillId>30521</skillId> <!-- Damage Up -->
|
|
||||||
<skillLevel>1</skillLevel>
|
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="IgnoreDeath" />
|
<effect name="IgnoreDeath" />
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public enum Stat
|
|||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
+1
@@ -48,6 +48,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
Vendored
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1447,14 +1447,9 @@
|
|||||||
<AIRBIND>90</AIRBIND>
|
<AIRBIND>90</AIRBIND>
|
||||||
<AGGRESSION>90</AGGRESSION>
|
<AGGRESSION>90</AGGRESSION>
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="TriggerSkillByAttack">
|
<effect name="AutoAttackDamageBonus">
|
||||||
<!-- Damage Up -->
|
<amount>400</amount>
|
||||||
<chance>100</chance>
|
<mode>PER</mode>
|
||||||
<targetType>TARGET</targetType>
|
|
||||||
<affectScope>SINGLE</affectScope>
|
|
||||||
<minDamage>100</minDamage>
|
|
||||||
<skillId>30521</skillId> <!-- Damage Up -->
|
|
||||||
<skillLevel>1</skillLevel>
|
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="IgnoreDeath" />
|
<effect name="IgnoreDeath" />
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public enum Stat
|
|||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
+1
@@ -48,6 +48,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1447,14 +1447,9 @@
|
|||||||
<AIRBIND>90</AIRBIND>
|
<AIRBIND>90</AIRBIND>
|
||||||
<AGGRESSION>90</AGGRESSION>
|
<AGGRESSION>90</AGGRESSION>
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="TriggerSkillByAttack">
|
<effect name="AutoAttackDamageBonus">
|
||||||
<!-- Damage Up -->
|
<amount>400</amount>
|
||||||
<chance>100</chance>
|
<mode>PER</mode>
|
||||||
<targetType>TARGET</targetType>
|
|
||||||
<affectScope>SINGLE</affectScope>
|
|
||||||
<minDamage>100</minDamage>
|
|
||||||
<skillId>30521</skillId> <!-- Damage Up -->
|
|
||||||
<skillLevel>1</skillLevel>
|
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="IgnoreDeath" />
|
<effect name="IgnoreDeath" />
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public enum Stat
|
|||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
+1
@@ -49,6 +49,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
Vendored
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1447,14 +1447,9 @@
|
|||||||
<AIRBIND>90</AIRBIND>
|
<AIRBIND>90</AIRBIND>
|
||||||
<AGGRESSION>90</AGGRESSION>
|
<AGGRESSION>90</AGGRESSION>
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="TriggerSkillByAttack">
|
<effect name="AutoAttackDamageBonus">
|
||||||
<!-- Damage Up -->
|
<amount>400</amount>
|
||||||
<chance>100</chance>
|
<mode>PER</mode>
|
||||||
<targetType>TARGET</targetType>
|
|
||||||
<affectScope>SINGLE</affectScope>
|
|
||||||
<minDamage>100</minDamage>
|
|
||||||
<skillId>30521</skillId> <!-- Damage Up -->
|
|
||||||
<skillLevel>1</skillLevel>
|
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="IgnoreDeath" />
|
<effect name="IgnoreDeath" />
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public enum Stat
|
|||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
+1
@@ -50,6 +50,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
L2J_Mobius_05.5_EtinasFate/dist/game/data/scripts/handlers/effecthandlers/AutoAttackDamageBonus.java
Vendored
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1447,14 +1447,9 @@
|
|||||||
<AIRBIND>90</AIRBIND>
|
<AIRBIND>90</AIRBIND>
|
||||||
<AGGRESSION>90</AGGRESSION>
|
<AGGRESSION>90</AGGRESSION>
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="TriggerSkillByAttack">
|
<effect name="AutoAttackDamageBonus">
|
||||||
<!-- Damage Up -->
|
<amount>400</amount>
|
||||||
<chance>100</chance>
|
<mode>PER</mode>
|
||||||
<targetType>TARGET</targetType>
|
|
||||||
<affectScope>SINGLE</affectScope>
|
|
||||||
<minDamage>100</minDamage>
|
|
||||||
<skillId>30521</skillId> <!-- Damage Up -->
|
|
||||||
<skillLevel>1</skillLevel>
|
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="IgnoreDeath" />
|
<effect name="IgnoreDeath" />
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public enum Stat
|
|||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
+1
@@ -50,6 +50,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
Vendored
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1504,14 +1504,9 @@
|
|||||||
<AIRBIND>90</AIRBIND>
|
<AIRBIND>90</AIRBIND>
|
||||||
<AGGRESSION>90</AGGRESSION>
|
<AGGRESSION>90</AGGRESSION>
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="TriggerSkillByAttack">
|
<effect name="AutoAttackDamageBonus">
|
||||||
<!-- Damage Up -->
|
<amount>400</amount>
|
||||||
<chance>100</chance>
|
<mode>PER</mode>
|
||||||
<targetType>TARGET</targetType>
|
|
||||||
<affectScope>SINGLE</affectScope>
|
|
||||||
<minDamage>100</minDamage>
|
|
||||||
<skillId>30521</skillId> <!-- Damage Up -->
|
|
||||||
<skillLevel>1</skillLevel>
|
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="IgnoreDeath" />
|
<effect name="IgnoreDeath" />
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public enum Stat
|
|||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
+1
@@ -51,6 +51,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1504,14 +1504,9 @@
|
|||||||
<AIRBIND>90</AIRBIND>
|
<AIRBIND>90</AIRBIND>
|
||||||
<AGGRESSION>90</AGGRESSION>
|
<AGGRESSION>90</AGGRESSION>
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="TriggerSkillByAttack">
|
<effect name="AutoAttackDamageBonus">
|
||||||
<!-- Damage Up -->
|
<amount>400</amount>
|
||||||
<chance>100</chance>
|
<mode>PER</mode>
|
||||||
<targetType>TARGET</targetType>
|
|
||||||
<affectScope>SINGLE</affectScope>
|
|
||||||
<minDamage>100</minDamage>
|
|
||||||
<skillId>30521</skillId> <!-- Damage Up -->
|
|
||||||
<skillLevel>1</skillLevel>
|
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="IgnoreDeath" />
|
<effect name="IgnoreDeath" />
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public enum Stat
|
|||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
+1
@@ -51,6 +51,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
L2J_Mobius_08.2_Homunculus/dist/game/data/scripts/handlers/effecthandlers/AutoAttackDamageBonus.java
Vendored
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1529,14 +1529,9 @@
|
|||||||
<AIRBIND>90</AIRBIND>
|
<AIRBIND>90</AIRBIND>
|
||||||
<AGGRESSION>90</AGGRESSION>
|
<AGGRESSION>90</AGGRESSION>
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="TriggerSkillByAttack">
|
<effect name="AutoAttackDamageBonus">
|
||||||
<!-- Damage Up -->
|
<amount>400</amount>
|
||||||
<chance>100</chance>
|
<mode>PER</mode>
|
||||||
<targetType>TARGET</targetType>
|
|
||||||
<affectScope>SINGLE</affectScope>
|
|
||||||
<minDamage>100</minDamage>
|
|
||||||
<skillId>30521</skillId> <!-- Damage Up -->
|
|
||||||
<skillLevel>1</skillLevel>
|
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="IgnoreDeath" />
|
<effect name="IgnoreDeath" />
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ public enum Stat
|
|||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
Vendored
+1
@@ -52,6 +52,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
+3
-8
@@ -1529,14 +1529,9 @@
|
|||||||
<AIRBIND>90</AIRBIND>
|
<AIRBIND>90</AIRBIND>
|
||||||
<AGGRESSION>90</AGGRESSION>
|
<AGGRESSION>90</AGGRESSION>
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="TriggerSkillByAttack">
|
<effect name="AutoAttackDamageBonus">
|
||||||
<!-- Damage Up -->
|
<amount>400</amount>
|
||||||
<chance>100</chance>
|
<mode>PER</mode>
|
||||||
<targetType>TARGET</targetType>
|
|
||||||
<affectScope>SINGLE</affectScope>
|
|
||||||
<minDamage>100</minDamage>
|
|
||||||
<skillId>30521</skillId> <!-- Reliable Hit -->
|
|
||||||
<skillLevel>1</skillLevel>
|
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="IgnoreDeath" />
|
<effect name="IgnoreDeath" />
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
|
|||||||
+1
@@ -21,6 +21,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
+1
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -90,6 +90,7 @@ public enum Stat
|
|||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
+1
@@ -52,6 +52,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1529,14 +1529,9 @@
|
|||||||
<AIRBIND>90</AIRBIND>
|
<AIRBIND>90</AIRBIND>
|
||||||
<AGGRESSION>90</AGGRESSION>
|
<AGGRESSION>90</AGGRESSION>
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="TriggerSkillByAttack">
|
<effect name="AutoAttackDamageBonus">
|
||||||
<!-- Damage Up -->
|
<amount>400</amount>
|
||||||
<chance>100</chance>
|
<mode>PER</mode>
|
||||||
<targetType>TARGET</targetType>
|
|
||||||
<affectScope>SINGLE</affectScope>
|
|
||||||
<minDamage>100</minDamage>
|
|
||||||
<skillId>30521</skillId> <!-- Reliable Hit -->
|
|
||||||
<skillLevel>1</skillLevel>
|
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="IgnoreDeath" />
|
<effect name="IgnoreDeath" />
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ public enum Stat
|
|||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
DRAGON_WEAPON_DEFENCE("dragonWeaponDefence"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
+1
@@ -47,6 +47,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -17,6 +17,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ public enum Stat
|
|||||||
CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA
|
CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA
|
||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
+1
@@ -47,6 +47,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -17,6 +17,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ public enum Stat
|
|||||||
CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA
|
CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA
|
||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
+1
@@ -48,6 +48,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -18,6 +18,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
+1
@@ -1445,6 +1445,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ public enum Stat
|
|||||||
CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA
|
CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA
|
||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// PVP BONUS
|
// PVP BONUS
|
||||||
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
PVP_PHYSICAL_ATTACK_DAMAGE("pvpPhysDmg"),
|
||||||
|
|||||||
+1
@@ -49,6 +49,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
@@ -19,6 +19,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
+1
@@ -1446,6 +1446,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ public enum Stat
|
|||||||
CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA
|
CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA
|
||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// ELEMENTAL SPIRITS
|
// ELEMENTAL SPIRITS
|
||||||
ELEMENTAL_SPIRIT_FIRE_ATTACK("elementalSpiritFireAttack"),
|
ELEMENTAL_SPIRIT_FIRE_ATTACK("elementalSpiritFireAttack"),
|
||||||
|
|||||||
Vendored
+1
@@ -49,6 +49,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
@@ -19,6 +19,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
+1
@@ -1446,6 +1446,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -87,6 +87,7 @@ public enum Stat
|
|||||||
CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA
|
CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA
|
||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// ELEMENTAL SPIRITS
|
// ELEMENTAL SPIRITS
|
||||||
ELEMENTAL_SPIRIT_FIRE_ATTACK("elementalSpiritFireAttack"),
|
ELEMENTAL_SPIRIT_FIRE_ATTACK("elementalSpiritFireAttack"),
|
||||||
|
|||||||
+1
@@ -50,6 +50,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
@@ -20,6 +20,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
+1
@@ -1446,6 +1446,7 @@ public class Formulas
|
|||||||
damage *= calcAttackTraitBonus(attacker, target);
|
damage *= calcAttackTraitBonus(attacker, target);
|
||||||
damage *= calcAttributeBonus(attacker, target, null);
|
damage *= calcAttributeBonus(attacker, target, null);
|
||||||
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
damage *= calculatePvpPveBonus(attacker, target, null, crit);
|
||||||
|
damage *= attacker.getStat().getMul(Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
|
||||||
return Math.max(0, damage);
|
return Math.max(0, damage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public enum Stat
|
|||||||
CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA
|
CRITICAL_DAMAGE_ADD("cAtkAdd"), // this is another type for special critical damage mods - vicious stance, critical power and critical damage SA
|
||||||
HATE_ATTACK("attackHate"),
|
HATE_ATTACK("attackHate"),
|
||||||
REAR_DAMAGE_RATE("rearDamage"),
|
REAR_DAMAGE_RATE("rearDamage"),
|
||||||
|
AUTO_ATTACK_DAMAGE_BONUS("autoAttackDamageBonus"),
|
||||||
|
|
||||||
// ELEMENTAL SPIRITS
|
// ELEMENTAL SPIRITS
|
||||||
ELEMENTAL_SPIRIT_FIRE_ATTACK("elementalSpiritFireAttack"),
|
ELEMENTAL_SPIRIT_FIRE_ATTACK("elementalSpiritFireAttack"),
|
||||||
|
|||||||
+1
@@ -48,6 +48,7 @@ public class EffectMasterHandler
|
|||||||
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
EffectHandler.getInstance().registerHandler("AttackAttributeAdd", AttackAttributeAdd::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
EffectHandler.getInstance().registerHandler("AttackBehind", AttackBehind::new);
|
||||||
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
EffectHandler.getInstance().registerHandler("AttackTrait", AttackTrait::new);
|
||||||
|
EffectHandler.getInstance().registerHandler("AutoAttackDamageBonus", AutoAttackDamageBonus::new);
|
||||||
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
EffectHandler.getInstance().registerHandler("Backstab", Backstab::new);
|
||||||
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
EffectHandler.getInstance().registerHandler("Betray", Betray::new);
|
||||||
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
EffectHandler.getInstance().registerHandler("Blink", Blink::new);
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.effecthandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatSet;
|
||||||
|
import org.l2jmobius.gameserver.model.stats.Stat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author NasSeKa
|
||||||
|
*/
|
||||||
|
public class AutoAttackDamageBonus extends AbstractStatPercentEffect
|
||||||
|
{
|
||||||
|
public AutoAttackDamageBonus(StatSet params)
|
||||||
|
{
|
||||||
|
super(params, Stat.AUTO_ATTACK_DAMAGE_BONUS);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1447,14 +1447,9 @@
|
|||||||
<AIRBIND>90</AIRBIND>
|
<AIRBIND>90</AIRBIND>
|
||||||
<AGGRESSION>90</AGGRESSION>
|
<AGGRESSION>90</AGGRESSION>
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="TriggerSkillByAttack">
|
<effect name="AutoAttackDamageBonus">
|
||||||
<!-- Damage Up -->
|
<amount>400</amount>
|
||||||
<chance>100</chance>
|
<mode>PER</mode>
|
||||||
<targetType>TARGET</targetType>
|
|
||||||
<affectScope>SINGLE</affectScope>
|
|
||||||
<minDamage>100</minDamage>
|
|
||||||
<skillId>30521</skillId> <!-- Damage Up -->
|
|
||||||
<skillLevel>1</skillLevel>
|
|
||||||
</effect>
|
</effect>
|
||||||
<effect name="IgnoreDeath" />
|
<effect name="IgnoreDeath" />
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ AttackAttribute: Stat that increases specific attack attribute.
|
|||||||
AttackAttributeAdd: Stat that increases all attack attribute.
|
AttackAttributeAdd: Stat that increases all attack attribute.
|
||||||
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
AttackBehind: Enables all attacks regardless of position to land towards the back.
|
||||||
AttackTrait: Stat that manages all attack traits.
|
AttackTrait: Stat that manages all attack traits.
|
||||||
|
AutoAttackDamageBonus: Auto attack damage modifier. (l2jmobius)
|
||||||
Backstab: Inflicts physical damage according to the backstab formula.
|
Backstab: Inflicts physical damage according to the backstab formula.
|
||||||
Betray: Causes the target summon to attack its owner.
|
Betray: Causes the target summon to attack its owner.
|
||||||
Blink: Teleport to location effect.
|
Blink: Teleport to location effect.
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user