mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-31 09:33:47 +00:00
Merge branch 'master' into Playerbot
# Conflicts: # src/server/game/World/IWorld.h # src/server/game/World/World.cpp # src/server/game/World/World.h # src/server/scripts/Commands/cs_server.cpp
This commit is contained in:
@@ -334,11 +334,12 @@ void Minion::InitStats(uint32 duration)
|
||||
|
||||
SetReactState(REACT_PASSIVE);
|
||||
|
||||
Unit* owner = GetOwner();
|
||||
SetCreatorGUID(owner->GetGUID());
|
||||
SetFaction(owner->GetFaction());
|
||||
|
||||
owner->SetMinion(this, true);
|
||||
if (Unit* owner = GetOwner())
|
||||
{
|
||||
SetCreatorGUID(owner->GetGUID());
|
||||
SetFaction(owner->GetFaction());
|
||||
owner->SetMinion(this, true);
|
||||
}
|
||||
}
|
||||
|
||||
void Minion::RemoveFromWorld()
|
||||
|
||||
@@ -11035,6 +11035,11 @@ void Player::LeaveBattleground(Battleground* bg)
|
||||
// xinef: reset corpse reclaim time
|
||||
m_deathExpireTime = GameTime::GetGameTime().count();
|
||||
|
||||
// Remove all dots
|
||||
RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE);
|
||||
RemoveAurasByType(SPELL_AURA_PERIODIC_DAMAGE_PERCENT);
|
||||
RemoveAurasByType(SPELL_AURA_PERIODIC_LEECH);
|
||||
|
||||
// pussywizard: clear movement, because after porting player will move to arena cords
|
||||
GetMotionMaster()->MovementExpired();
|
||||
StopMoving();
|
||||
|
||||
Reference in New Issue
Block a user