mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Merge pull request #49 from gmcferrin/patch-2
Fix for [Issue #48] - Combat XP Gain
This commit is contained in:
commit
7e7505381b
@ -106,9 +106,9 @@ public class Combat
|
|||||||
int hpLeft = defender.getHealth(), xpinc = 0;
|
int hpLeft = defender.getHealth(), xpinc = 0;
|
||||||
|
|
||||||
if(hpLeft < event.getDamage())
|
if(hpLeft < event.getDamage())
|
||||||
xpinc = event.getDamage();
|
|
||||||
else
|
|
||||||
xpinc = hpLeft;
|
xpinc = hpLeft;
|
||||||
|
else
|
||||||
|
xpinc = event.getDamage;
|
||||||
|
|
||||||
int xp = (int) (xpinc * 2 * LoadProperties.pvpxprewardmodifier);
|
int xp = (int) (xpinc * 2 * LoadProperties.pvpxprewardmodifier);
|
||||||
|
|
||||||
@ -380,9 +380,9 @@ public class Combat
|
|||||||
int hpLeft = le.getHealth(), xpinc = 0;
|
int hpLeft = le.getHealth(), xpinc = 0;
|
||||||
|
|
||||||
if(hpLeft < event.getDamage())
|
if(hpLeft < event.getDamage())
|
||||||
xpinc = event.getDamage();
|
|
||||||
else
|
|
||||||
xpinc = hpLeft;
|
xpinc = hpLeft;
|
||||||
|
else
|
||||||
|
xpinc = event.getDamage();
|
||||||
|
|
||||||
if(entity instanceof Animals)
|
if(entity instanceof Animals)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user