Support for AggroInfo long numbers.

This commit is contained in:
MobiusDevelopment
2022-12-01 04:30:00 +00:00
parent 25ca9044f1
commit f1158b42a0
248 changed files with 796 additions and 767 deletions

View File

@@ -398,7 +398,7 @@ public class IstinaCavern extends AbstractInstance
}
else if (skillId == ISTINA_ERUPTION_SKILL.getSkillId())
{
((Attackable) npc).getAggroList().values().stream().sorted(Comparator.comparingInt(AggroInfo::getHate)).map(AggroInfo::getAttacker).limit(5).forEach(character ->
((Attackable) npc).getAggroList().values().stream().sorted(Comparator.comparingLong(AggroInfo::getHate)).map(AggroInfo::getAttacker).limit(5).forEach(character ->
{
final Npc eruption = addSpawn(INVISIBLE_NPC, Util.getRandomPosition(character, 150, 150), false, 0, false, instance.getId());
eruption.getVariables().set("ERUPTION_TARGET", character);

View File

@@ -84,7 +84,7 @@ public class RandomizeHate extends AbstractEffect
// Choosing randomly a new target
final Creature target = targetList.get(Rnd.get(targetList.size()));
final int hate = effectedMob.getHating(effector);
final long hate = effectedMob.getHating(effector);
effectedMob.stopHating(effector);
effectedMob.addDamageHate(target, 0, hate);
}

View File

@@ -66,7 +66,8 @@ public class TransferHate extends AbstractEffect
{
return;
}
final int hate = hater.getHating(effector);
final long hate = hater.getHating(effector);
if (hate <= 0)
{
return;