mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 08:06:23 +00:00
Merge branch 'azerothcore:master' into Playerbot
This commit is contained in:
@@ -3036,7 +3036,7 @@ bool Creature::SetSwim(bool enable)
|
|||||||
*/
|
*/
|
||||||
bool Creature::CanSwim() const
|
bool Creature::CanSwim() const
|
||||||
{
|
{
|
||||||
if (Unit::CanSwim() || (!Unit::CanSwim() && !CanFly()))
|
if (Unit::CanSwim())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (IsPet())
|
if (IsPet())
|
||||||
|
|||||||
@@ -958,7 +958,6 @@ struct npc_drakonid_spawner : public ScriptedAI
|
|||||||
|
|
||||||
ObjectGuid summonGuid = summon->GetGUID();
|
ObjectGuid summonGuid = summon->GetGUID();
|
||||||
|
|
||||||
summon->SetCorpseDelay(DAY * IN_MILLISECONDS);
|
|
||||||
summon->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
|
summon->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
|
||||||
summon->SetHomePosition(summon->GetPosition());
|
summon->SetHomePosition(summon->GetPosition());
|
||||||
|
|
||||||
@@ -976,6 +975,7 @@ struct npc_drakonid_spawner : public ScriptedAI
|
|||||||
construct->SetReactState(REACT_PASSIVE);
|
construct->SetReactState(REACT_PASSIVE);
|
||||||
construct->SetStandState(UNIT_STAND_STATE_DEAD);
|
construct->SetStandState(UNIT_STAND_STATE_DEAD);
|
||||||
construct->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
|
construct->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
|
||||||
|
construct->SetCorpseRemoveTime(DAY * IN_MILLISECONDS);
|
||||||
construct->SetVisible(true);
|
construct->SetVisible(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user