Skip to content

Commit bab509b

Browse files
committed
Some fields that don't exist in old clients.
1 parent 7ff0a39 commit bab509b

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

src/game/GossipDef.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,9 +740,11 @@ void PlayerMenu::SendQuestGiverOfferReward(Quest const* pQuest, ObjectGuid npcGU
740740
}
741741

742742
data << uint32(pQuest->GetRewOrReqMoney());
743-
744-
data << uint32(0); // unused
743+
data << uint32(pQuest->GetQuestFlags());
744+
#if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_4_2
745745
data << uint32(pQuest->GetRewSpell()); // reward spell, this spell will display (icon) (casted if RewSpellCast==0)
746+
#endif
747+
746748
GetMenuSession()->SendPacket(&data);
747749
}
748750

src/game/Objects/SpellCaster.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,9 @@ void SpellCaster::SendSpellNonMeleeDamageLog(SpellNonMeleeDamage const* log) con
823823
data << uint32(log->damage); // damage amount
824824
data << uint8(log->school); // damage school
825825
data << uint32(log->absorb); // AbsorbedDamage
826+
#if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_5_1
826827
data << int32(log->resist); // resist
828+
#endif
827829
data << uint8(log->periodicLog); // if 1, then client show spell name (example: %s's ranged shot hit %s for %u school or %s suffers %u school damage from %s's spell_name
828830
data << uint8(false); // unused
829831
data << uint32(log->blocked); // blocked

src/game/Objects/Unit.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4421,7 +4421,9 @@ void Unit::SendPeriodicAuraLog(SpellPeriodicAuraLogInfo const* pInfo, AuraType a
44214421
data << uint32(pInfo->damage); // damage
44224422
data << uint32(aura->GetSpellProto()->School);
44234423
data << uint32(pInfo->absorb); // absorb
4424+
#if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_5_1
44244425
data << int32(pInfo->resist); // resist
4426+
#endif
44254427
break;
44264428
case SPELL_AURA_PERIODIC_HEAL:
44274429
case SPELL_AURA_OBS_MOD_HEALTH:

src/game/World.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ void World::AddSession_(WorldSession* s)
326326
packet << uint32(0); // BillingTimeRemaining
327327
// BillingPlanFlags
328328
packet << uint8(s->HasTrialRestrictions() ? (BILLING_FLAG_TRIAL | BILLING_FLAG_RESTRICTED) : BILLING_FLAG_NONE);
329+
#if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_7_1
329330
packet << uint32(0); // BillingTimeRested
331+
#endif
330332
s->SendPacket(&packet);
331333

332334
UpdateMaxSessionCounters();
@@ -373,7 +375,9 @@ void World::AddQueuedSession(WorldSession* sess)
373375
packet << uint32(0); // BillingTimeRemaining
374376
// BillingPlanFlags
375377
packet << uint8(sess->HasTrialRestrictions() ? (BILLING_FLAG_TRIAL | BILLING_FLAG_RESTRICTED) : BILLING_FLAG_NONE);
378+
#if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_7_1
376379
packet << uint32(0); // BillingTimeRested
380+
#endif
377381
packet << uint32(GetQueuedSessionPos(sess)); // position in queue
378382
sess->SendPacket(&packet);
379383

0 commit comments

Comments
 (0)