From c2b4961b8dbc435eb0c8147b835d4fbe587154f1 Mon Sep 17 00:00:00 2001 From: bm01 Date: Tue, 8 May 2012 20:12:41 +0200 Subject: [PATCH] Removed exp gain when an arrow strikes its shooter --- Changelog.txt | 1 + src/main/java/com/gmail/nossr50/util/Combat.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index 724852cab..7b6ebd225 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -38,6 +38,7 @@ Version 1.3.07 ! Changed the permission node for Blast Mining detonation to mcmmo.ability.blastmining.detonate (was mcmmo.skills.blastmining) for the sake of consistency ! Changed skill commands to only display what you have permissions for ! Changed mcMMO to use a new storage system for player placed blocks + - Removed the experience granted when an arrow strikes its shooter - Removed some unused permission nodes - Removed a few config options in favor of permissions nodes (Hunger Bonus, Armor/Tool Repair, Instant Wheat Regrowth) - Removed level requirement for repairing string tools from the config file diff --git a/src/main/java/com/gmail/nossr50/util/Combat.java b/src/main/java/com/gmail/nossr50/util/Combat.java index fbc28a74d..78a4bae1d 100644 --- a/src/main/java/com/gmail/nossr50/util/Combat.java +++ b/src/main/java/com/gmail/nossr50/util/Combat.java @@ -288,7 +288,9 @@ public class Combat { Archery.trackArrows(pluginx, target, PPa); } - startGainXp(attacker, PPa, target, SkillType.ARCHERY, pluginx); + if (target != attacker) { + startGainXp(attacker, PPa, target, SkillType.ARCHERY, pluginx); + } if (target instanceof Player) { if (permInstance.daze(attacker)) {