Module:Traits: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 20: Line 20:
         [2] = {}
         [2] = {}
     }
     }
    local e1 = args.effect1;
    local e2 = args.effect2;
     if args.effect1 == nil then
     if args.effect1 == nil then
         args.effect1 = args[4]
         e1 = args[4]
     end
     end
     if args.effect2 == nil then
     if args.effect2 == nil then
         args.effect2 = args[5]
         e2 = args[5]
     end
     end
     if args.effects1 ~= nil then
     if e1 ~= nil then
         effects[1] = split(args.effects1)
         effects[1] = split(args.e1)
     end
     end
     if args.effects2 ~= nil then
     if e2 ~= nil then
         effects[2] = split(args.effects2)
         effects[2] = split(args.e2)
     end
     end