Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: java/net/sf/l2j/Config.java
- ===================================================================
- --- java/net/sf/l2j/Config.java (revision 84)
- +++ java/net/sf/l2j/Config.java (working copy)
- + public static boolean PROTECTION_HEAL;
- + public static double PROTECTION_HEAL_PVP;
- + PROTECTION_HEAL = server.getProperty("HealProtection", false);
- + PROTECTION_HEAL_PVP = server.getProperty("HealCurrent", 1.);
- ===================================================================
- --- java/net/sf/l2j/gameserver/handler/skillhandlers/Heal.java (revision 0)
- +++ java/net/sf/l2j/gameserver/handler/skillhandlers/Heal.java (working copy)
- @@ -0,0 +1,84 @@
- switch (skill.getSkillType())
- {
- case HEAL_PERCENT:
- hp = target.getMaxHp() * power / 100.0;
- break;
- default:
- hp = power;
- hp *= target.calcStat(Stats.HEAL_EFFECTIVNESS, 100, null, null) / 100;
- + if (Config.PROTECTION_HEAL)
- + {
- + if (activeChar instanceof Player && ((Player) activeChar).getPvpFlag() != 0 || activeChar instanceof Player && ((Player) activeChar).getKarma() != 0)
- + hp *= Config.PROTECTION_HEAL_PVP;
- + }
- }
- # =================================================================
- # PvP Flag HealCurrent
- # =================================================================
- # To cure a percentage in pvp and pk.
- HealProtection = False
- # Default = 0.5
- HealCurrent = 0.5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement