api: update for tinted block and damage hitsplats
This commit is contained in:
@@ -361,8 +361,8 @@ public class IdleNotifierPlugin extends Plugin
|
||||
|
||||
final Hitsplat hitsplat = event.getHitsplat();
|
||||
|
||||
if (hitsplat.getHitsplatType() == Hitsplat.HitsplatType.DAMAGE
|
||||
|| hitsplat.getHitsplatType() == Hitsplat.HitsplatType.BLOCK)
|
||||
if (hitsplat.getHitsplatType() == Hitsplat.HitsplatType.DAMAGE_ME
|
||||
|| hitsplat.getHitsplatType() == Hitsplat.HitsplatType.BLOCK_ME)
|
||||
{
|
||||
lastCombatCountdown = HIGHEST_MONSTER_ATTACK_SPEED;
|
||||
}
|
||||
|
||||
@@ -250,7 +250,7 @@ public class IdleNotifierPluginTest
|
||||
// But player is being damaged (is in combat)
|
||||
final HitsplatApplied hitsplatApplied = new HitsplatApplied();
|
||||
hitsplatApplied.setActor(player);
|
||||
hitsplatApplied.setHitsplat(new Hitsplat(Hitsplat.HitsplatType.DAMAGE, 0, 0));
|
||||
hitsplatApplied.setHitsplat(new Hitsplat(Hitsplat.HitsplatType.DAMAGE_ME, 0, 0));
|
||||
plugin.onHitsplatApplied(hitsplatApplied);
|
||||
plugin.onGameTick(new GameTick());
|
||||
verify(notifier, times(0)).notify(any());
|
||||
|
||||
Reference in New Issue
Block a user