1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-04 01:37:47 +00:00

Missed one getCurrentTerri call.

This commit is contained in:
Mordred 2022-01-11 00:22:58 +01:00
parent 1f1e761016
commit eee27910ec
2 changed files with 2 additions and 3 deletions

View file

@ -123,10 +123,9 @@ void EffectBuilder::buildAndSendPackets( const std::vector< Entity::CharaPtr >&
std::shared_ptr< FFXIVPacketBase > EffectBuilder::buildNextEffectPacket( const std::vector< Entity::CharaPtr >& targetList )
{
auto remainingTargetCount = targetList.size();
auto globalSequence = m_sourceChara->getCurrentTerritory()->getNextEffectSequence();
auto& teriMgr = Common::Service< Sapphire::World::Manager::TerritoryMgr >::ref();
auto zone = teriMgr.getZoneByTerritoryTypeId( m_sourceChara->getTerritoryTypeId() );
auto globalSequence = zone->getNextEffectSequence();
if( remainingTargetCount > 1 ) // use AoeEffect packets
{

View file

@ -1277,7 +1277,7 @@ void Sapphire::World::Manager::DebugCommandMgr::housing( char* data, Entity::Pla
//
// if ( permissionSet < 5 )
// {
// auto pZone = player.getCurrentTerritory();
// auto pZone = teriMgr.getTerritoryFromGuid( player.getTerritoryId() );
// if( terriMgr.isHousingTerritory( pZone->getTerritoryTypeId() ) )
// {
// auto pHousing = std::dynamic_pointer_cast< HousingZone >( pZone );