Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(var i = 0; i < 5; i++)
- {
- if(obj_battle_buff_selected.buff[button_number,2].button_id == i)
- {
- this_button_id = obj_battle_buff_selected.buff[button_number,2];
- temp_button_id = ds_list_find_index(obj_battle_parent.buff_buttons, this_button_id);
- if(this_button_id == temp_button_id)
- {
- if(this_button_id.buff_id == noone)
- {
- this_button_id.buff_id = buff_id;
- this_button_id.can_do = false;
- //////////////////////////////
- //DO NOT CHANGE - THIS WORKS//
- obj_battle_buff_selected.buff[button_number,1] = false;
- //////////////////////////////
- ds_list_delete(obj_battle_parent.buff_buttons, this_button_id);
- can_select = false;
- obj_buff_menu.destroy = true;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement