mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-21 02:15:11 -06:00
ContentAPI on the thing I removed magic numbers from
This commit is contained in:
parent
43e53f7658
commit
04bc65c83a
1 changed files with 2 additions and 2 deletions
|
|
@ -402,8 +402,8 @@ public final class WeaponInterface extends Component {
|
|||
return;
|
||||
}
|
||||
boolean defensive = player.getSettings().getAttackStyleIndex() == 3;
|
||||
player.getPacketDispatch().sendInterfaceConfig(Components.WEAPON_STAFF_SEL_90, defAutocastBookChild, defensive);
|
||||
player.getPacketDispatch().sendInterfaceConfig(Components.WEAPON_STAFF_SEL_90, stdAutocastBookChild, !defensive);
|
||||
setComponentVisibility(player, Components.WEAPON_STAFF_SEL_90, defAutocastBookChild, defensive);
|
||||
setComponentVisibility(player, Components.WEAPON_STAFF_SEL_90, stdAutocastBookChild, !defensive);
|
||||
current = (CombatSpell) (modern ? SpellBookManager.SpellBook.MODERN.getSpell(data[buttonId]) : SpellBookManager.SpellBook.ANCIENT.getSpell(data[buttonId]));
|
||||
player.getProperties().setAutocastSpell(current);
|
||||
setAttribute(player, attributeAutocastButtonId, buttonId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue