Fixed Champions Assassination and Longshot achievements

This commit is contained in:
CoderTim 2014-08-29 21:09:51 -04:00
parent 41daba98c4
commit 34f04ad4e3
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ public class BackstabKillStatTracker extends StatTracker<Game>
if (player == null)
return;
if (event.GetLog().GetLastDamager().GetReason() != null && event.GetLog().GetLastDamager().GetReason().equalsIgnoreCase("Backstab"))
if (event.GetLog().GetLastDamager().GetReason() != null && event.GetLog().GetLastDamager().GetReason().contains("Backstab"))
{
Set<UUID> hasDamaged = _hasDamaged.get(player.getUniqueId());

View File

@ -43,7 +43,7 @@ public class TheLongestShotStatTracker extends StatTracker<Game>
if (player == null)
return;
if (event.GetLog().GetLastDamager().GetReason() != null && event.GetLog().GetLastDamager().GetReason().equalsIgnoreCase("longshot"))
if (event.GetLog().GetLastDamager().GetReason() != null && event.GetLog().GetLastDamager().GetReason().contains("Longshot"))
{
if (player.getLastDamageCause() instanceof EntityDamageByEntityEvent)
{