Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #6069 from Cryptexx/Conquest
Browse files Browse the repository at this point in the history
Fix Issue #6068 - Allow Multiple Supply Runs
  • Loading branch information
TeoTwawki authored Jun 9, 2019
2 parents add11a0 + 086fba1 commit 253a4ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/globals/conquest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1092,17 +1092,19 @@ dsp.conquest.overseerOnEventFinish = function(player, csid, option, guardNation,
sRegion == guardRegion and
sOutpost ~= nil and
player:hasKeyItem(sOutpost.ki) and
guardNation == pNation and
not hasOutpost(player, sRegion)
guardNation == pNation
then
player:delKeyItem(sOutpost.ki)
player:addCP(sOutpost.cp)
player:messageSpecial(mOffset) -- "You've earned conquest points!"
player:addNationTeleport(guardNation, math.pow(2, sRegion + 5))
player:setVar("supplyQuest_started", 0)
player:setVar("supplyQuest_region", 0)
player:setVar("supplyQuest_fresh", 0)

if not hasOutpost(player, sRegion) then
player:addNationTeleport(guardNation, math.pow(2, sRegion + 5))
end

-- SET HOMEPOINT
elseif option == 4 then
if player:delGil(setHomepointFee(player, guardNation)) then
Expand Down

0 comments on commit 253a4ef

Please sign in to comment.