Skip to content

Commit

Permalink
进冬拥湖战场下坐骑
Browse files Browse the repository at this point in the history
  • Loading branch information
dongkui555 committed May 19, 2024
1 parent 6a9395c commit 654dd59
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/server/game/Battlefield/Zones/BattlefieldWG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,16 @@ void BattlefieldWG::OnPlayerJoinWar(Player* player)
RemoveAurasFromPlayer(player);

player->CastSpell(player, SPELL_RECRUIT, true);
if (player->IsMounted())
{
player->Dismount();//进冬拥湖战场下坐骑
}
player->RemoveAurasByType(SPELL_AURA_MOUNTED);
player->RemoveAurasByType(SPELL_AURA_FLY);
player->RemoveAurasByType(SPELL_AURA_MOD_INCREASE_MOUNTED_FLIGHT_SPEED);
player->RemoveAurasByType(SPELL_AURA_MOD_SHAPESHIFT);//增加检测小德飞行
player->SetSpeed(MOVE_RUN, 1, true);
player->SetSpeed(MOVE_FLIGHT, 1, true);
AddUpdateTenacity(player);

if (player->GetTeamId() == GetDefenderTeam())
Expand Down

0 comments on commit 654dd59

Please sign in to comment.