Changeset 2284
- Timestamp:
- 07/15/08 17:52:18 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
r2283 r2284 4670 4670 public boolean doDie(L2Character killer) 4671 4671 { 4672 /* Since L2Character.doDie() calls stopAllEffects(), which includes 4673 * setting charm of curage and other blessings as false, this stores value 4674 * before calling superclass method 4675 */ 4676 boolean charmOfCourage = getCharmOfCourage(); 4677 4672 4678 // Kill the L2PcInstance 4673 4679 if (!super.doDie(killer)) … … 4737 4743 // Penalty is lower if the player is at war with the pk (war has to be declared) 4738 4744 if (getSkillLevel(L2Skill.SKILL_LUCKY) < 0 || getStat().getLevel() > 9) 4739 deathPenalty(pk != null && getClan() != null && getClan().isAtWarWith(pk.getClanId()), pk != null );4745 deathPenalty(pk != null && getClan() != null && getClan().isAtWarWith(pk.getClanId()), pk != null, charmOfCourage); 4740 4746 4741 4747 } else … … 5139 5145 * 5140 5146 */ 5141 public void deathPenalty(boolean atwar, boolean killed_by_pc )5147 public void deathPenalty(boolean atwar, boolean killed_by_pc, boolean charmOfCourage) 5142 5148 { 5143 5149 // TODO Need Correct Penalty … … 5228 5234 setExpBeforeDeath(getExp()); 5229 5235 5230 if( getCharmOfCourage())5236 if(charmOfCourage) 5231 5237 { 5232 5238 if (getSiegeState() > 0 && isInsideZone(ZONE_SIEGE)) … … 5239 5245 // Set the new Experience value of the L2PcInstance 5240 5246 getStat().addExp(-lostExp); 5247 } 5248 5249 public void deathPenalty(boolean atwar, boolean killed_by_pc) 5250 { 5251 deathPenalty(atwar, killed_by_pc, getCharmOfCourage()); 5241 5252 } 5242 5253
