Skip to content
This repository has been archived by the owner on May 23, 2021. It is now read-only.

Commit

Permalink
fix(Referral): actually reward players who are referring
Browse files Browse the repository at this point in the history
  • Loading branch information
wizardlink committed Feb 22, 2021
1 parent 23820f1 commit 4fbc21c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/scripts/talkactions/player/referral.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function refer.onSay(player, words, param)
if not referrals then
rewards[1](referringPlayer)
else
if #rewards < #referrals then
if #rewards > #referrals then
rewards[#referrals](referringPlayer)
end
end
Expand Down

0 comments on commit 4fbc21c

Please sign in to comment.