![]() |
|
|
#3 |
|
Guest
Posts: n/a
|
COPCondition_have_debuff::foundDebuff is wrong, id is going to take always the last skill_id so you are going to really lucky if anytime return true.
Something like this would be better. bool COPCondition_have_debuff::foundDebuff(CCreature *pCreature, int SkillId){ for(int i=0;i<pCreature->vBuff.size();i++) { if(SkillId == pCreature->vBuff[i].pSkillInfo->skill_id) return true; } return false; } And please, try to use correct tabulation >.< sorry XD y have it fixed only post a wrong version, you are right... with this vortex crusher, slug, etc can work :P. Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-29-2009, 09:06 PM. Открыть источник. |
|
|