mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-23 13:17:45 +00:00
Merge pull request #344 from NotAdam/develop
fixed inter-instance gm calling
This commit is contained in:
commit
ae38f300e0
1 changed files with 8 additions and 2 deletions
|
@ -551,8 +551,14 @@ void Core::Network::GameConnection::gm2Handler( const Packets::FFXIVARR_PACKET_R
|
||||||
}
|
}
|
||||||
case GmCommand::Call:
|
case GmCommand::Call:
|
||||||
{
|
{
|
||||||
if( targetPlayer->getZoneId() != player.getZoneId() )
|
// We shouldn't be able to call a player into an instance, only call them out of one
|
||||||
targetPlayer->setZone( player.getZoneId() );
|
if( player.getCurrentInstance() )
|
||||||
|
{
|
||||||
|
player.sendUrgent( "You are unable to call a player while bound to a battle instance." );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
targetPlayer->setInstance( player.getCurrentZone() );
|
||||||
|
|
||||||
targetPlayer->changePosition( player.getPos().x, player.getPos().y, player.getPos().z, player.getRot() );
|
targetPlayer->changePosition( player.getPos().x, player.getPos().y, player.getPos().z, player.getRot() );
|
||||||
player.sendNotice( "Calling " + targetPlayer->getName() );
|
player.sendNotice( "Calling " + targetPlayer->getName() );
|
||||||
|
|
Loading…
Add table
Reference in a new issue