Mercurial > wow > buffalo2
comparison Modules/ArtifactPower.lua @ 112:7c77fde36287
- WorldPlan pins are checked for completion state when available AP is tallied.
| author | Nick@Zahhak |
|---|---|
| date | Thu, 23 Mar 2017 05:29:03 -0400 |
| parents | 1196c2bad31c |
| children | 8c94bee4fdfc |
comparison
equal
deleted
inserted
replaced
| 111:1196c2bad31c | 112:7c77fde36287 |
|---|---|
| 431 | 431 |
| 432 local showWQ | 432 local showWQ |
| 433 print('world plan is loaded') | 433 print('world plan is loaded') |
| 434 local worldQuests = WorldPlan:GetQuestPins() | 434 local worldQuests = WorldPlan:GetQuestPins() |
| 435 for index, pin in ipairs(worldQuests) do | 435 for index, pin in ipairs(worldQuests) do |
| 436 if pin.dataLoaded and (pin.rewardType == WORLD_QUEST_REWARD_TYPE_FLAG_ARTIFACT_POWER) then | 436 if pin.dataLoaded and (pin.rewardType == WORLD_QUEST_REWARD_TYPE_FLAG_ARTIFACT_POWER) and (pin.isActive) then |
| 437 showWQ = true | 437 showWQ = true |
| 438 print(pin.itemNumber) | 438 print(pin.itemNumber) |
| 439 self.worldQuestAP = self.worldQuestAP + pin.itemNumber | 439 self.worldQuestAP = self.worldQuestAP + pin.itemNumber |
| 440 end | 440 end |
| 441 end | 441 end |
