SpecialCondition.lua 393 B

12345678910
  1. ConditionHandler:register(ConditionId.special["使用经验药水"], "使用经验药水", function(actor, param)
  2. local expDrug = getplaydef(actor, PlayerDefKey.player.EXP_BOOST_EXPIRE_TIME) or {}
  3. expDrug = expDrug == '' and {} or expDrug
  4. if table.isNullOrEmpty(expDrug) then
  5. return false
  6. end
  7. local id = expDrug['buffId']
  8. return string.contains(param, id)
  9. end)