Reprioritize arrow target player when leaving combat
This commit is contained in:
@@ -1208,6 +1208,20 @@ public abstract class RSClientMixin implements RSClient
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@FieldHook("combatTargetPlayerIndex")
|
||||||
|
@Inject
|
||||||
|
public static void combatPlayerTargetChanged(int ignored)
|
||||||
|
{
|
||||||
|
if (client.getLocalInteractingIndex() == -1)
|
||||||
|
{
|
||||||
|
final Player p = client.getHintArrowPlayer();
|
||||||
|
if (p != null)
|
||||||
|
{
|
||||||
|
client.setLocalInteractingIndex(p.getPlayerId() & 2047);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
@Override
|
@Override
|
||||||
public boolean hasHintArrow()
|
public boolean hasHintArrow()
|
||||||
|
|||||||
Reference in New Issue
Block a user