From 2babc66a856ed90894d437afac2494ca10b2bc6d Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sat, 2 Nov 2013 00:11:32 -0700 Subject: [PATCH] Fix Ranged Weapons so they only have their bonuses applied when using their ranged properties. (Such as only when you shoot arrows with bows) --- .../bin/me/kaZep/Base/PlayerListener.class | Bin 204368 -> 204390 bytes .../src/me/kaZep/Base/PlayerListener.java | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BankEconomyMod/bin/me/kaZep/Base/PlayerListener.class b/BankEconomyMod/bin/me/kaZep/Base/PlayerListener.class index 9b4fe4fd9b5dbedc77a8e04a74fcc5fda23bf0a2..4934650cb8e1a6164fa6701f8f4d703fd4500f40 100644 GIT binary patch delta 1581 zcmYk+Yfw~W7zgn897K%W1Dfgo5nXoo?EQAmF6?s7mdqq-+GHlET~x%oh)S-PG|?7s zjTU(g7rc~~qLPvqbVVVxps|?-v72dPH@j$dW3psWYi(nu_tXD(eok`ozF3!%5~)nt5&0^OH}ffrBRxdEoVywc8TquxQkj1y@{7dxwF{%} z{dZcJS0^ms*!#lZ|6l96?)-0z6v;R7BjQu4;!`eniN0v(w{#ExiXpn27@FQ2kEUng zvGk`fEPWw{r&r*K^yA1)zlgl_c8t=eVYL214AJM}8U523qo0bg`VhwJ%TS;{hY5xh zOf>Yt6oV5}4gE3AFbUHQGf`-$!wf?`ii`qg8@r>}2+T32VXo1Rc}4~E!^V6pFiyjB z#zRXcM~Rq-C88E#u?LokZY&pvVud&XE5*rJB|eMQ;&WIdZp6!CCCbEISSudK zI`JK>7q4N1NrR0h7hW|zj&-Jqs4z`IrKt#8Oy$^Wiej7T0$ww-8)yUjV+ zV=lyA^A1#-FJZq$hXa;zsIhFqAxjGmTT^hv>PM|L8%M4Cam@NQqBbK=*vvR-bD_Z| z;gqdEPTL;C8CwYN+7{zITN4^>XVGNujkESX_`q(!hjt5^?KwDSFGPzyg!A?ed}O~H z#>bAAalx?`pF3)C(b0%Yj_dfs(T2-T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ITfixI zADnil;f!0Ig?e{B8ku((rqgt0&YNq*L^08f|M~CI&_3)-R*~Ty(2q5GGMM|!113ma zt-Kz3mMvg9sgEkJaNC0FnP7E|@)Eb*pF-3=WfSN1r_Sm+<$12upOos;%5z+qKXK|7 zMK)8yY+}N-4QvWm?*9wd1+hWg7JuquIKor}ru?{$6dM`zcA)2pO=p_|MRP3|5x|&R zRQCcHbF1oZ0Aqfvx*fon+f>Z~jQP3hW&mS;p}G;kSacm2>+24TEx7|DJY>G(HitZ8 z!o?_NUvRrZDqK9n_>&-|qhGMOHD@n>Uc%sMzg$ JHISXz{2ys=&xim3 diff --git a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java index a0eba4b..e6bda72 100644 --- a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java +++ b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java @@ -5955,7 +5955,7 @@ public ItemStack getGoodie() { //p.sendMessage("No Damage Ticks: "+f.getNoDamageTicks()); ItemStack item = p.getItemInHand(); double critical_chance=0,armor_pen=0,life_steal=0,attack_speed=0,dmg=0; - if (item.getItemMeta()!=null && item.getItemMeta().getLore()!=null && item.getItemMeta().getLore().size()!=0) { + if (item.getType()!=Material.BOW && item.getItemMeta()!=null && item.getItemMeta().getLore()!=null && item.getItemMeta().getLore().size()!=0) { //Make sure this isn't a ranged weapon. for (int i=0;i