Jump to content

Haruka

Inactive Member
  • Posts

    98
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Haruka

  1. char_battle.cpp

    Check:


     

    Spoiler

    bool CHARACTER::Attack(LPCHARACTER pkVictim, BYTE bType)

    Check this now:

    Spoiler

        DWORD dwCurrentTime = get_dword_time();

        if (IsPC())
        {

    add this:

    Spoiler

        if (IsPolymorphed() == true)
           return false;

    Looks like it:

    Spoiler

    bool CHARACTER::Attack(LPCHARACTER pkVictim, BYTE bType)
    {
        if (test_server)
            sys_log(0, "[TEST_SERVER] Attack : %s type %d, MobBattleType %d", GetName(), bType, !GetMobBattleType() ? 0 : GetMobAttackRange());
        //PROF_UNIT puAttack("Attack");
        if (!CanMove())
            return false;

        // CASTLE
        if (IS_CASTLE_MAP(GetMapIndex()) && false == castle_can_attack(this, pkVictim))
            return false;
        // CASTLE

        DWORD dwCurrentTime = get_dword_time();

        if (IsPC())
        {

        if (IsPolymorphed())
            return false;

            if (IS_SPEED_HACK(this, pkVictim, dwCurrentTime))
                return false;

            if (bType == 0 && dwCurrentTime < GetSkipComboAttackByTime())
                return false;
        }
        else .. // ..etc etc etc

     

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.