Addition of Lucky Clover rate configuration.
This commit is contained in:
@ -14142,7 +14142,7 @@ public final class L2PcInstance extends L2Playable
|
||||
|
||||
public boolean tryLuck()
|
||||
{
|
||||
if (((Rnd.nextDouble() * 100) < BaseStats.LUC.getValue(getLUC())) && !hasSkillReuse(CommonSkill.LUCKY_CLOVER.getSkill().getReuseHashCode()))
|
||||
if (((Rnd.nextDouble() * 100) < (BaseStats.LUC.getValue(getLUC()) * Config.LUCKY_CHANCE_MULTIPLIER)) && !hasSkillReuse(CommonSkill.LUCKY_CLOVER.getSkill().getReuseHashCode()))
|
||||
{
|
||||
SkillCaster.triggerCast(this, this, CommonSkill.LUCKY_CLOVER.getSkill());
|
||||
sendPacket(SystemMessageId.LADY_LUCK_SMILES_UPON_YOU);
|
||||
|
Reference in New Issue
Block a user