Core/Misc: fixed a scenario when character factionchange create unexpected results, also moved packet generating code into unique methods
This commit is contained in:
1 parent
183a0c59e0
commit
1a075f0454
10 files changed
+430
-431
No files matched your search
@@ -510,13 +510,14 @@ public:
|
||||
handler->PSendSysMessage(LANG_SUMMONING, nameLink.c_str(), handler->GetTrinityString(LANG_OFFLINE));
|
||||
|
||||
// in point where GM stay
|
||||
Player::SavePositionInDB(handler->GetSession()->GetPlayer()->GetMapId(),
|
||||
SQLTransaction dummy;
|
||||
Player::SavePositionInDB(WorldLocation(handler->GetSession()->GetPlayer()->GetMapId(),
|
||||
handler->GetSession()->GetPlayer()->GetPositionX(),
|
||||
handler->GetSession()->GetPlayer()->GetPositionY(),
|
||||
handler->GetSession()->GetPlayer()->GetPositionZ(),
|
||||
handler->GetSession()->GetPlayer()->GetOrientation(),
|
||||
handler->GetSession()->GetPlayer()->GetOrientation()),
|
||||
handler->GetSession()->GetPlayer()->GetZoneId(),
|
||||
targetGuid);
|
||||
targetGuid, dummy);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user