[7477] Implement work ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
1 parent
cb1ff8180d
commit
46dfd6261b
3 files changed
+28
-15
No files matched your search
+3
-1
@@ -6576,7 +6576,7 @@ void Player::UpdateZone(uint32 newZone, uint32 newArea)
|
||||
pvpInfo.endTimer = time(0); // start toggle-off
|
||||
}
|
||||
|
||||
if(zone->flags & AREA_FLAG_SANCTUARY) // in sanctuary
|
||||
if(zone->flags & (AREA_FLAG_SANCTUARY | AREA_FLAG_UNK7 & AREA_FLAG_UNK7)) // in sanctuary
|
||||
{
|
||||
SetByteFlag(UNIT_FIELD_BYTES_2, 1, UNIT_BYTE2_FLAG_SANCTUARY);
|
||||
if(sWorld.IsFFAPvPRealm())
|
||||
@@ -10992,6 +10992,8 @@ Item* Player::EquipItem( uint16 pos, Item *pItem, bool update )
|
||||
}
|
||||
}
|
||||
|
||||
// only for full equip instead adding to stack
|
||||
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM, pItem->GetEntry());
|
||||
return pItem;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user