Anonymous

Module:Pets: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 80: Line 80:
   local pet = p.getPet(name)
   local pet = p.getPet(name)
   --local skill = args.skill ~= nil and args.skill or '{{Skill|'..Skills.getSkillName(pet.skill)..'}}'
   --local skill = args.skill ~= nil and args.skill or '{{Skill|'..Skills.getSkillName(pet.skill)..'}}'
   local skill = args.skill ~= nil and args.skill or Icons.Icon({Skills.getSkillName(pet.skill), type='skill'})
   local skill = args.skill ~= nil and args.skill ~= '' or Icons.Icon({Skills.getSkillName(pet.skill), type='skill'})
   local effect = args.effect ~= nil and args.effect or pet.description
   local effect = args.effect ~= nil and args.effect or pet.description
    
    
285

edits