use of net.runelite.rs.api.RSCombatInfo2 in project runelite by runelite.
the class RSActorMixin method getHealth.
@Inject
@Override
public int getHealth() {
RSCombatInfoList combatInfoList = getCombatInfoList();
if (combatInfoList != null) {
RSNode node = combatInfoList.getNode();
RSNode next = node.getNext();
if (next instanceof RSCombatInfoListHolder) {
RSCombatInfoListHolder combatInfoListWrapper = (RSCombatInfoListHolder) next;
RSCombatInfo2 cf = combatInfoListWrapper.getCombatInfo2();
return cf.getHealthScale();
}
}
return -1;
}
Aggregations