Merge pull request #49 from gmcferrin/patch-2

Fix for [Issue #48] - Combat XP Gain
This commit is contained in:
The Yeti 2012-01-26 15:14:09 -08:00
commit 7e7505381b

View File

@ -106,9 +106,9 @@ public class Combat
int hpLeft = defender.getHealth(), xpinc = 0;
if(hpLeft < event.getDamage())
xpinc = event.getDamage();
else
xpinc = hpLeft;
else
xpinc = event.getDamage;
int xp = (int) (xpinc * 2 * LoadProperties.pvpxprewardmodifier);
@ -380,9 +380,9 @@ public class Combat
int hpLeft = le.getHealth(), xpinc = 0;
if(hpLeft < event.getDamage())
xpinc = event.getDamage();
else
xpinc = hpLeft;
else
xpinc = event.getDamage();
if(entity instanceof Animals)
{