scriptdev2 / scriptdev2-cata

ScriptDev2 for Cataclysm

Home Page:http://www.scriptdev2.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sara - Yogg-Saron after respawn.

opened this issue · comments

Sara after respawn not normal levitate and falls away in texture. Problem only in Cata Core.
I think add additional in Reset:

void Reset() override
    {
        m_uiPhase                             = PHASE_INTRO;
        m_uiSarasSpellTimer             = 15000;
        m_bIsHostile                           = false;

        m_uiPsychosisTimer              = 2000;
        m_uiMaladyTimer                  = 15000;
        m_uiBrainLinkTimer               = 25000;
        m_uiDeathRayTimer              = 20000;

        m_creature->SetByteValue(UNIT_FIELD_BYTES_1, 3, UNIT_BYTE1_FLAG_FLY_ANIM);
        m_creature->SetLevitate(true);
    }

Testing and correct working)

You mean the following lines, right?

m_creature->SetByteValue(UNIT_FIELD_BYTES_1, 3, UNIT_BYTE1_FLAG_FLY_ANIM);
m_creature->SetLevitate(true);

Yes, Otherwise, it will fall down to the texture.

Adding levitation and bytes FLY_ANIM very helpful! Tested in game.

Problem solved - solution in first post.