Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DWORD __stdcall GameAfterAttack(UnitAny* pUnit, DWORD dwSpell, DWORD dwMode, DWORD Unk1)
- {
- DWORD dwRet = D2CLIENT_GameShowAttack(pUnit, dwSpell, dwMode, Unk1);
- if(dwSpell == D2S_TELEPORT)
- return dwRet;
- if(dwSpell == D2S_CHARGE)
- return dwRet;
- if(pUnit && pUnit->dwUnitId == D2CLIENT_GetPlayerUnit()->dwUnitId && pUnit->dwType == UNIT_PLAYER)
- {
- if(dwSpell != D2S_LIGHTNING)
- if(dwSpell != D2S_CHAINLIGHTNING)
- if(D2CLIENT_GetPlayerUnit()->dwMode == PLAYER_MODE_SEQUENCE)
- return dwRet; //remove these lines and flash screen to cast super fast
- D2CLIENT_GetPlayerUnit()->dwFrameRemain = 0;
- D2CLIENT_GetPlayerUnit()->dwGfxFrame = 0;
- }
- return dwRet;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement