Static 30% change for skill MP consumption.

This commit is contained in:
MobiusDev 2019-01-11 05:48:43 +00:00
parent d76d67c42e
commit e7ceedbb48
4 changed files with 36 additions and 24 deletions

View File

@ -4383,6 +4383,8 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// Absorb MP from the damage inflicted. // Absorb MP from the damage inflicted.
if (skill != null) // Classic: Used to reduce skill MP consumption. See Orfen's Earring. if (skill != null) // Classic: Used to reduce skill MP consumption. See Orfen's Earring.
{
if (Rnd.get(10) < 3) // Classic: Static 30% change.
{ {
double absorbPercent = _stat.getValue(Stats.ABSORB_MANA_DAMAGE_PERCENT, 0); double absorbPercent = _stat.getValue(Stats.ABSORB_MANA_DAMAGE_PERCENT, 0);
if (absorbPercent > 0) if (absorbPercent > 0)
@ -4395,6 +4397,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
} }
} }
} }
}
if (reflectedDamage > 0) if (reflectedDamage > 0)
{ {

View File

@ -4383,6 +4383,8 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// Absorb MP from the damage inflicted. // Absorb MP from the damage inflicted.
if (skill != null) // Classic: Used to reduce skill MP consumption. See Orfen's Earring. if (skill != null) // Classic: Used to reduce skill MP consumption. See Orfen's Earring.
{
if (Rnd.get(10) < 3) // Classic: Static 30% change.
{ {
double absorbPercent = _stat.getValue(Stats.ABSORB_MANA_DAMAGE_PERCENT, 0); double absorbPercent = _stat.getValue(Stats.ABSORB_MANA_DAMAGE_PERCENT, 0);
if (absorbPercent > 0) if (absorbPercent > 0)
@ -4395,6 +4397,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
} }
} }
} }
}
if (reflectedDamage > 0) if (reflectedDamage > 0)
{ {

View File

@ -4383,6 +4383,8 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// Absorb MP from the damage inflicted. // Absorb MP from the damage inflicted.
if (skill != null) // Classic: Used to reduce skill MP consumption. See Orfen's Earring. if (skill != null) // Classic: Used to reduce skill MP consumption. See Orfen's Earring.
{
if (Rnd.get(10) < 3) // Classic: Static 30% change.
{ {
double absorbPercent = _stat.getValue(Stats.ABSORB_MANA_DAMAGE_PERCENT, 0); double absorbPercent = _stat.getValue(Stats.ABSORB_MANA_DAMAGE_PERCENT, 0);
if (absorbPercent > 0) if (absorbPercent > 0)
@ -4395,6 +4397,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
} }
} }
} }
}
if (reflectedDamage > 0) if (reflectedDamage > 0)
{ {

View File

@ -4383,6 +4383,8 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// Absorb MP from the damage inflicted. // Absorb MP from the damage inflicted.
if (skill != null) // Classic: Used to reduce skill MP consumption. See Orfen's Earring. if (skill != null) // Classic: Used to reduce skill MP consumption. See Orfen's Earring.
{
if (Rnd.get(10) < 3) // Classic: Static 30% change.
{ {
double absorbPercent = _stat.getValue(Stats.ABSORB_MANA_DAMAGE_PERCENT, 0); double absorbPercent = _stat.getValue(Stats.ABSORB_MANA_DAMAGE_PERCENT, 0);
if (absorbPercent > 0) if (absorbPercent > 0)
@ -4395,6 +4397,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
} }
} }
} }
}
if (reflectedDamage > 0) if (reflectedDamage > 0)
{ {