mirror of
https://github.com/mangosfour/server.git
synced 2026-01-01 07:37:07 +00:00
Over 100 camangos Cata commits applied (to c12950)
Over 100 camangos Cata commits applied. up to and inclusing c12950.
This commit is contained in:
parent
b4ec0440aa
commit
eef77eadb9
117 changed files with 4314 additions and 3547 deletions
|
|
@ -59,3 +59,39 @@ bool InstanceData::CheckConditionCriteriaMeet(Player const* /*source*/, uint32 i
|
|||
instance->GetId(), instance_condition_id, uint32(conditionSourceType));
|
||||
return false;
|
||||
}
|
||||
|
||||
void InstanceData::SendEncounterFrame(uint32 type, ObjectGuid sourceGuid /*= NULL*/, uint8 param1 /*= 0*/, uint8 param2 /*= 0*/)
|
||||
{
|
||||
// size of this packet is at most 15 (usually less)
|
||||
WorldPacket data(SMSG_INSTANCE_ENCOUNTER, 15);
|
||||
data << uint32(type);
|
||||
|
||||
switch (type)
|
||||
{
|
||||
case ENCOUNTER_FRAME_ENGAGE:
|
||||
case ENCOUNTER_FRAME_DISENGAGE:
|
||||
case ENCOUNTER_FRAME_UPDATE_PRIORITY:
|
||||
MANGOS_ASSERT(sourceGuid);
|
||||
|
||||
data << sourceGuid.WriteAsPacked();
|
||||
data << uint8(param1);
|
||||
break;
|
||||
case ENCOUNTER_FRAME_ADD_TIMER:
|
||||
case ENCOUNTER_FRAME_ENABLE_OBJECTIVE:
|
||||
case ENCOUNTER_FRAME_DISABLE_OBJECTIVE:
|
||||
case ENCOUNTER_FRAME_SET_COMBAT_RES_LIMIT:
|
||||
data << uint8(param1);
|
||||
break;
|
||||
case ENCOUNTER_FRAME_UPDATE_OBJECTIVE:
|
||||
data << uint8(param1);
|
||||
data << uint8(param2);
|
||||
break;
|
||||
case ENCOUNTER_FRAME_UNK7:
|
||||
case ENCOUNTER_FRAME_ADD_COMBAT_RES_LIMIT:
|
||||
case ENCOUNTER_FRAME_RESET_COMBAT_RES_LIMIT:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
instance->SendToPlayers(&data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue