I am implementing PUP WS's and attachments but I have run into a problem. For instance, when trying to add Armor Shatterer, I have done the following:
Code: Select all
if (m_PPet->getFrame() == FRAME_SHARPSHOT){
for (int i = 0; i < m_PPet->PetSkills.size(); i++) {
auto PMobSkill = battleutils::GetMobSkill(m_PPet->PetSkills.at(i));
if (PMobSkill->getID() == 2488 &&
raskill > 323) { //Armor Shatterer
SetCurrentMobSkill(PMobSkill);
break;
}
else if (PMobSkill->getID() == 2044 &&
raskill > 244) { //Armor Piercer
SetCurrentMobSkill(PMobSkill);
break;
}
else if (PMobSkill->getID() == 1810 &&
raskill > 149) { //Daze
SetCurrentMobSkill(PMobSkill);
break;
}
else if (PMobSkill->getID() == 1686 &&
raskill > 0) { //Acruballista
SetCurrentMobSkill(PMobSkill);
break;
}
}
}