Core/Quests: Implemented quest flag forcing the player to be flagged for PvP as long as the quest is in his log.

This commit is contained in:
Shauren committed 2013-02-26 17:14:13 +01:00
1 parent e3e5d14d52
commit af4ac778d7
8 files changed
+85 -29

No files matched your search

+2 -2
View File
@@ -174,7 +174,7 @@ void WorldSession::HandleMoveWorldportAckOpcode()
GetPlayer()->UpdateZone(newzone, newarea);
// honorless target
if (GetPlayer()->pvpInfo.inHostileArea)
if (GetPlayer()->pvpInfo.IsHostile)
GetPlayer()->CastSpell(GetPlayer(), 2479, true);
// in friendly area
@@ -224,7 +224,7 @@ void WorldSession::HandleMoveTeleportAck(WorldPacket& recvData)
if (old_zone != newzone)
{
// honorless target
if (plMover->pvpInfo.inHostileArea)
if (plMover->pvpInfo.IsHostile)
plMover->CastSpell(plMover, 2479, true);
// in friendly area