fix(Script/Nexus/EOE/Oculus) The Scion of Eternity(EOE) target wrong and player can not ride the dragon in Oculus (#14830)
Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
This commit is contained in:
@@ -1201,9 +1201,13 @@ public:
|
|||||||
for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
|
for (Map::PlayerList::const_iterator i = PlayerList.begin(); i != PlayerList.end(); ++i)
|
||||||
if (Player* pPlayer = i->GetSource())
|
if (Player* pPlayer = i->GetSource())
|
||||||
{
|
{
|
||||||
if (!pPlayer->IsAlive() || pPlayer->IsGameMaster())
|
if (pPlayer->IsAlive())
|
||||||
continue;
|
{
|
||||||
guids.push_back(pPlayer->GetGUID());
|
if (!pPlayer->GetVehicle())
|
||||||
|
{
|
||||||
|
guids.push_back(pPlayer->GetGUID());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!guids.empty())
|
if (!guids.empty())
|
||||||
if (Player* plr = ObjectAccessor::GetPlayer(*me, guids.at(urand(0, guids.size() - 1))))
|
if (Player* plr = ObjectAccessor::GetPlayer(*me, guids.at(urand(0, guids.size() - 1))))
|
||||||
|
|||||||
@@ -354,7 +354,7 @@ public:
|
|||||||
|
|
||||||
void IsSummonedBy(WorldObject* summoner) override
|
void IsSummonedBy(WorldObject* summoner) override
|
||||||
{
|
{
|
||||||
if (summoner->GetTypeId() != TYPEID_UNIT)
|
if (summoner->GetTypeId() != TYPEID_PLAYER)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user