Guest

Jules

By: a guest on Feb 9th, 2010  |  syntax: Lua  |  size: 0.35 KB  |  hits: 71  |  expires: Never
download  |  raw  |  embed  |  report abuse
This paste has a previous version, view the difference. Copied
  1. function mantisCureAfflictions()
  2.         for k,v in pairs(mantisBalanceFlags) do
  3.                 if mantisBalanceFlags.v then
  4.                         for affliction,cure in pairs(mantisAfflictionPriorities) do
  5.                                 if type == "string" then
  6.                                         send(cure)
  7.                                 elseif type == "table" then
  8.                                         for affliction,cure in ipairs(cure) do
  9.                                                 send(v.cure)
  10.                                         end
  11.                                 end
  12.                         end
  13.                 end
  14.         end
  15. end