Skip to content

Commit

Permalink
Missed one
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 5, 2021
1 parent d2499d2 commit 675cc01
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -38,7 +38,7 @@ function training.get_chances(trainer, grade)
return training.get_trainer(trainer).grade[grade + 1].chance
end

function training.apply_trait(unit, trait, check)
function training.apply_trait(u, trait, check)
if u:matches(check) and u:matches( wml.tag.filter_wml { wml.tag.modifications { wml.tag.trait { id = trait.id } } } ) then
u:add_modification("trait", trait)
else
Expand Down

0 comments on commit 675cc01

Please sign in to comment.