diff options
author | Shauren <shauren.trinity@gmail.com> | 2011-01-23 21:42:32 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2011-01-23 21:42:32 +0100 |
commit | e5b4f8e84d1230419e19d55f23b4fa754db4b5db (patch) | |
tree | 259fa8eeb0ee72b55c147dd86f09de7121e40b25 /src/server/game/Instances/InstanceScript.cpp | |
parent | ac689f456dc2d08cff6bcc4cbba94c135570a56a (diff) |
Scripts/Icecrown Citadel: Implemented boss raid frames for Blood Prince Council
Diffstat (limited to 'src/server/game/Instances/InstanceScript.cpp')
-rwxr-xr-x | src/server/game/Instances/InstanceScript.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/server/game/Instances/InstanceScript.cpp b/src/server/game/Instances/InstanceScript.cpp index e6a13d0ab85..348ff7a766c 100755 --- a/src/server/game/Instances/InstanceScript.cpp +++ b/src/server/game/Instances/InstanceScript.cpp @@ -397,15 +397,16 @@ bool InstanceScript::CheckAchievementCriteriaMeet(uint32 criteria_id, Player con return false; } -void InstanceScript::SendEncounterUnit(uint32 type, Unit* unit, uint8 param1 /*= 0*/, uint8 param2 /*= 0*/) +void InstanceScript::SendEncounterUnit(uint32 type, Unit* unit /*= NULL*/, uint8 param1 /*= 0*/, uint8 param2 /*= 0*/) { - WorldPacket data(SMSG_UPDATE_INSTANCE_ENCOUNTER_UNIT, 1); + // size of this packet is at most 15 (usually less) + WorldPacket data(SMSG_UPDATE_INSTANCE_ENCOUNTER_UNIT, 15); data << uint32(type); switch (type) { - case 0: - case 1: + case ENCOUNTER_FRAME_ADD: + case ENCOUNTER_FRAME_REMOVE: case 2: data.append(unit->GetPackGUID()); data << uint8(param1); |