Changeset 189
- Timestamp:
- 11/19/08 13:44:45 (17 years ago)
- Location:
- trunk/src/game
- Files:
-
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/MovementHandler.cpp
r174 r189 539 539 } 540 540 541 void WorldSession::HandleNotActiveMoverOpcode(WorldPacket& /*recv_data*/) 542 { 543 sLog.outDebug("WORLD: Recvd CMSG_MOVE_NOT_ACTIVE_MOVER"); 544 } 545 541 546 void WorldSession::HandleMountSpecialAnimOpcode(WorldPacket& /*recvdata*/) 542 547 { -
trunk/src/game/Opcodes.cpp
r152 r189 750 750 /*0x2CF*/ { "CMSG_MOVE_FEATHER_FALL_ACK", STATUS_LOGGEDIN, &WorldSession::HandleFeatherFallAck }, 751 751 /*0x2D0*/ { "CMSG_MOVE_WATER_WALK_ACK", STATUS_LOGGEDIN, &WorldSession::HandleMoveWaterWalkAck }, 752 /*0x2D1*/ { "CMSG_MOVE_NOT_ACTIVE_MOVER", STATUS_ NEVER, &WorldSession::Handle_NULL},752 /*0x2D1*/ { "CMSG_MOVE_NOT_ACTIVE_MOVER", STATUS_LOGGEDIN, &WorldSession::HandleNotActiveMoverOpcode }, 753 753 /*0x2D2*/ { "SMSG_PLAY_SOUND", STATUS_NEVER, &WorldSession::Handle_ServerSide }, 754 754 /*0x2D3*/ { "CMSG_BATTLEFIELD_STATUS", STATUS_LOGGEDIN, &WorldSession::HandleBattlefieldStatusOpcode }, -
trunk/src/game/Player.cpp
r186 r189 18661 18661 SetPossessedTarget(target); 18662 18662 18663 uint32 flags1 = target->GetUInt32Value(UNIT_FIELD_FLAGS); 18664 18663 18665 target->SetUInt32Value(UNIT_FIELD_FACTIONTEMPLATE, getFaction()); 18664 18666 target->RemoveUnitMovementFlag(MOVEMENTFLAG_WALK_MODE); … … 18668 18670 SetUInt64Value(PLAYER_FARSIGHT, target->GetGUID()); 18669 18671 18672 uint32 flags2 = target->GetUInt32Value(UNIT_FIELD_FLAGS); 18673 18670 18674 if(target->GetTypeId() == TYPEID_UNIT) 18671 18675 { … … 18721 18725 } 18722 18726 18727 // Interrupt any current casting of the target 18728 if(target->IsNonMeleeSpellCasted(true)) 18729 target->InterruptNonMeleeSpells(true); 18730 18723 18731 RemovePossessedTarget(); 18724 18732 … … 18744 18752 18745 18753 target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_UNKNOWN5); 18746 target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE);18747 18754 RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE); 18748 18755 SetUInt64Value(PLAYER_FARSIGHT, 0); … … 18759 18766 else 18760 18767 { 18768 target->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE); 18761 18769 if(((Creature*)target)->isPet()) 18762 {18763 ((Pet*)target)->InitPetCreateSpells();18764 18770 PetSpellInitialize(); 18765 } 18766 18767 if (target->isAlive()) 18771 else if (target->isAlive()) 18768 18772 { 18769 18773 // If we're still hostile to our target, continue attacking otherwise reset threat and go home 18770 if (target->getVictim()) 18771 { 18772 Unit* victim = target->getVictim(); 18774 if (Unit* victim = target->getVictim()) 18775 { 18773 18776 FactionTemplateEntry const* t_faction = target->getFactionTemplateEntry(); 18774 18777 FactionTemplateEntry const* v_faction = victim->getFactionTemplateEntry(); … … 18784 18787 } 18785 18788 } 18786 else if (target->GetTypeId() == TYPEID_UNIT)18789 else 18787 18790 { 18788 18791 target->GetMotionMaster()->Clear(); … … 18791 18794 18792 18795 // Add high amount of threat on the player 18793 if( target != GetPet() &&attack)18796 if(attack) 18794 18797 target->AddThreat(this, 1000000.0f); 18795 18798 } -
trunk/src/game/WorldSession.h
r174 r189 321 321 void HandlePossessedMovement(WorldPacket& recv_data, MovementInfo& movementInfo, uint32& MovementFlags); 322 322 void HandleSetActiveMoverOpcode(WorldPacket &recv_data); 323 void HandleNotActiveMoverOpcode(WorldPacket &recv_data); 323 324 void HandleMoveTimeSkippedOpcode(WorldPacket &recv_data); 324 325