Advertisement
gravvy

Untitled

Jul 10th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. for(var i = 0; i < 5; i++)
  2. {
  3. if(obj_battle_buff_selected.buff[button_number,2].button_id == i)
  4. {
  5. this_button_id = obj_battle_buff_selected.buff[button_number,2];
  6. temp_button_id = ds_list_find_index(obj_battle_parent.buff_buttons, this_button_id);
  7.  
  8. if(this_button_id == temp_button_id)
  9. {
  10. if(this_button_id.buff_id == noone)
  11. {
  12. this_button_id.buff_id = buff_id;
  13. this_button_id.can_do = false;
  14.  
  15. //////////////////////////////
  16. //DO NOT CHANGE - THIS WORKS//
  17. obj_battle_buff_selected.buff[button_number,1] = false;
  18. //////////////////////////////
  19.  
  20. ds_list_delete(obj_battle_parent.buff_buttons, this_button_id);
  21. can_select = false;
  22. obj_buff_menu.destroy = true;
  23. }
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement