mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fix for [Issue #48] - Combat XP Gain
This commit is contained in:
parent
ce3fe8fd21
commit
ff9b6fd98a
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user