diff --git a/Assets/PerfectWorld/Scripts/Move/CECPlayer.cs b/Assets/PerfectWorld/Scripts/Move/CECPlayer.cs index 7de9bc56fd..b56a5d404e 100644 --- a/Assets/PerfectWorld/Scripts/Move/CECPlayer.cs +++ b/Assets/PerfectWorld/Scripts/Move/CECPlayer.cs @@ -68,7 +68,7 @@ namespace BrewMonster private QueueActionEvent queueActionEvent; protected static PLAYER_LEVELEXP_CONFIG _player_levelup_exp; private CECPlayerActionController m_pActionController; - private enumWingType m_wingType; + private enumWingType m_wingType = enumWingType.WINGTYPE_FLYSWORD; protected int m_idCurSkillTarget; protected CECSkill m_pCurSkill; protected int m_idFaction; // ID of player's faction @@ -961,13 +961,13 @@ namespace BrewMonster else iAction = (int)PLAYER_ACTION_TYPE.ACT_WALK; } - //else if (iMoveEnv == MOVEENV_AIR) - //{ - // //if (/*UsingWing()*/ m_wingType == WINGTYPE_WING) - // // iAction = ACT_FLY; - // //else - // // iAction = ACT_FLY_SWORD; - //} + else if (iMoveEnv == (int)MoveEnvironment.MOVEENV_AIR) + { + if (/*UsingWing()*/ m_wingType == enumWingType.WINGTYPE_WING) + iAction = (int)PLAYER_ACTION_TYPE.ACT_FLY; + else + iAction = (int)PLAYER_ACTION_TYPE.ACT_FLY_SWORD; + } else if (iMoveEnv == (int)MoveEnvironment.MOVEENV_WATER) { //if (CanCombineWithMoveForSkill()) @@ -990,13 +990,13 @@ namespace BrewMonster else iAction = (int)PLAYER_ACTION_TYPE.ACT_STAND; } - //else if (iMoveEnv == MOVEENV_AIR) - //{ - // if (/*UsingWing()*/ m_wingType == WINGTYPE_WING) - // iAction = ACT_HANGINAIR; - // else - // iAction = ACT_HANGINAIR_SWORD; - //} + else if (iMoveEnv == (int)MoveEnvironment.MOVEENV_AIR) + { + if (/*UsingWing()*/ m_wingType == enumWingType.WINGTYPE_WING) + iAction = (int)PLAYER_ACTION_TYPE.ACT_HANGINAIR; + else + iAction = (int)PLAYER_ACTION_TYPE.ACT_HANGINAIR_SWORD; + } else if (iMoveEnv == (int)MoveEnvironment.MOVEENV_WATER) iAction = (int)PLAYER_ACTION_TYPE.ACT_HANGINWATER; }