mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
Fixed saving of icc buff switch
This commit is contained in:
@@ -1548,7 +1548,8 @@ class instance_icecrown_citadel : public InstanceMapScript
|
|||||||
std::ostringstream saveStream;
|
std::ostringstream saveStream;
|
||||||
saveStream << "I C " << GetBossSaveData() << HeroicAttempts << ' '
|
saveStream << "I C " << GetBossSaveData() << HeroicAttempts << ' '
|
||||||
<< ColdflameJetsState << ' ' << BloodQuickeningState << ' ' << BloodQuickeningMinutes << ' ' << WeeklyQuestId10 << ' ' << PutricideEventProgress << ' '
|
<< ColdflameJetsState << ' ' << BloodQuickeningState << ' ' << BloodQuickeningMinutes << ' ' << WeeklyQuestId10 << ' ' << PutricideEventProgress << ' '
|
||||||
<< uint32(LichKingHeroicAvailable ? 1 : 0) << ' ' << BloodPrinceTrashCount;
|
<< uint32(LichKingHeroicAvailable ? 1 : 0) << ' ' << BloodPrinceTrashCount << ' ' << uint32(IsBuffAvailable ? 1 : 0);
|
||||||
|
|
||||||
|
|
||||||
OUT_SAVE_INST_DATA_COMPLETE;
|
OUT_SAVE_INST_DATA_COMPLETE;
|
||||||
return saveStream.str();
|
return saveStream.str();
|
||||||
@@ -1600,6 +1601,8 @@ class instance_icecrown_citadel : public InstanceMapScript
|
|||||||
loadStream >> temp;
|
loadStream >> temp;
|
||||||
LichKingHeroicAvailable = temp ? true : false;
|
LichKingHeroicAvailable = temp ? true : false;
|
||||||
loadStream >> BloodPrinceTrashCount;
|
loadStream >> BloodPrinceTrashCount;
|
||||||
|
loadStream >> temp;
|
||||||
|
SetData(DATA_BUFF_AVAILABLE, temp ? true : false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
OUT_LOAD_INST_DATA_FAIL;
|
OUT_LOAD_INST_DATA_FAIL;
|
||||||
|
|||||||
Reference in New Issue
Block a user