Mercurial > wow > askmrrobot
comparison Core.lua @ 59:ee701ce45354 v22
Couple minor bug fixes, added french localization.
| author | yellowfive |
|---|---|
| date | Sun, 07 Jun 2015 14:28:59 -0700 |
| parents | 01b63b8ed811 |
| children | cf2b6b9a8337 |
comparison
equal
deleted
inserted
replaced
| 58:3e395402ac52 | 59:ee701ce45354 |
|---|---|
| 526 end | 526 end |
| 527 end | 527 end |
| 528 return false | 528 return false |
| 529 end | 529 end |
| 530 | 530 |
| 531 -- helper to determine if an item in the player's bag is soulbound | 531 -- helper to determine if we can equip an item (it is already soulbound or account bound) |
| 532 function Amr:IsSoulbound(bagId, slotId) | 532 function Amr:CanEquip(bagId, slotId) |
| 533 local tt = self:GetScanningTooltip() | 533 local tt = self:GetScanningTooltip() |
| 534 tt:ClearLines() | 534 tt:ClearLines() |
| 535 if bagId then | 535 if bagId then |
| 536 tt:SetBagItem(bagId, slotId) | 536 tt:SetBagItem(bagId, slotId) |
| 537 else | 537 else |
| 538 tt:SetInventoryItem("player", slotId) | 538 tt:SetInventoryItem("player", slotId) |
| 539 end | 539 end |
| 540 return self:IsTextInTooltip(tt, ITEM_SOULBOUND) | 540 if self:IsTextInTooltip(tt, ITEM_SOULBOUND) then return true end |
| 541 if self:IsTextInTooltip(tt, ITEM_BNETACCOUNTBOUND) then return true end | |
| 542 if self:IsTextInTooltip(tt, ITEM_ACCOUNTBOUND) then return true end | |
| 541 end | 543 end |
| 542 | 544 |
| 543 -- helper to determine if an item has a unique constraint | 545 -- helper to determine if an item has a unique constraint |
| 544 function Amr:IsUnique(bagId, slotId) | 546 function Amr:IsUnique(bagId, slotId) |
| 545 local tt = self:GetScanningTooltip() | 547 local tt = self:GetScanningTooltip() |
