mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-04 15:27:30 +07:00
Checks if target is still valid (some trailing event target ids?)
This commit is contained in:
@ -123,6 +123,7 @@ public class Actioneer extends PassiveSystem {
|
||||
break;
|
||||
case 1: // attack
|
||||
if (targetId == Engine.INVALID_ENTITY) return;
|
||||
if (!mAttributesWrapper.has(targetId)) return;
|
||||
log.debug("{} attack {}", entityId, targetId);
|
||||
|
||||
Attributes attrs = mAttributesWrapper.get(targetId).attrs;
|
||||
|
Reference in New Issue
Block a user