|
@@ -287,40 +287,9 @@ if (!::IsWindow(m_hGameWnd)) return;\
|
|
|
{
|
|
|
CRect rc;
|
|
|
BOOL bIsAttack = FALSE;
|
|
|
- switch (nAttackNPCType)
|
|
|
- {
|
|
|
- case 0:
|
|
|
- { // 将鼠标移动到指定位置;
|
|
|
- DebugLog(_T("IsWattingAttack:镜妖中……"));
|
|
|
- POINT ptDest = { 20, 50 }; // 左上角;
|
|
|
- MouseMove(ptDest, false);
|
|
|
- if (ImgAssist::IsMatchIcon(m_hGameWnd, GameGlobal::g_strAppdir + _T("img\\我方攻击.bmp"), { 0, 50, 60, 115 }, rc)) {
|
|
|
- DebugLog(_T("IsWattingAttack:我方攻击"));
|
|
|
- bIsAttack = TRUE;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
- case 1:
|
|
|
- {
|
|
|
- // 将鼠标移动到指定位置;
|
|
|
- DebugLog(_T("IsWattingAttack:职业挑战中……"));// 要求角色:自定全黑头像;
|
|
|
- //POINT ptDest = { 625, 28 }; // 左上角;
|
|
|
- //GAssist::MouseMove(hWnd, ptDest);
|
|
|
- if (!ImgAssist::IsMatchIcon(m_hGameWnd, GameGlobal::g_strAppdir + _T("img\\战斗中.bmp"), { 600, 25, 655, 80 }, rc)) {
|
|
|
- DebugLog(_T("IsWattingAttack:我方攻击"));
|
|
|
- bIsAttack = TRUE;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
- default:
|
|
|
- {
|
|
|
- DebugLog(_T("IsWattingAttack:职业挑战中……"));
|
|
|
- if (ImgAssist::IsMatchIcon(m_hGameWnd, GameGlobal::g_strAppdir + _T("img\\我方攻击2.bmp"), { 720, 85, 806, 120 }, rc)) {
|
|
|
- DebugLog(_T("IsWattingAttack:我方攻击"));
|
|
|
- bIsAttack = TRUE;
|
|
|
- }
|
|
|
- }
|
|
|
- break;
|
|
|
+ if (ImgAssist::IsMatchIcon(m_hGameWnd, GameGlobal::g_strAppdir + _T("img\\我方攻击2.bmp"), { 720, 85, 806, 120 }, rc)) {
|
|
|
+ DebugLog(_T("IsWattingAttack:我方攻击中……"));
|
|
|
+ bIsAttack = TRUE;
|
|
|
}
|
|
|
|
|
|
return bIsAttack;
|