1. #Find
  2. def RefreshSkill(self):
  3. ...
  4. ...
  5. #Add
  6. if app.SKILL_COOLTIME_UPDATE:
  7. def SkillClearCoolTime(self, usedSlotIndex):
  8. QUICK_SLOT_SLOT_COUNT = 4
  9. slotIndex = 0
  10. for slotWindow in self.quickslot:
  11. for i in xrange(QUICK_SLOT_SLOT_COUNT):
  12. (Type, Position) = player.GetLocalQuickSlot(slotIndex)
  13. if Type == player.SLOT_TYPE_SKILL:
  14. if usedSlotIndex == Position:
  15. slotWindow.SetSlotCoolTime(slotIndex, 0)
  16. return
  17. slotIndex += 1