Skip to content

Commit

Permalink
Merge 3.3.5 to 3.3.5-lfgsolo
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions committed Nov 13, 2023
2 parents 15c876c + 33bc42b commit 1b81e73
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 2 additions & 0 deletions sql/updates/world/3.3.5/2023_11_11_00_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Fix Halazzi texts id
UPDATE `creature_text` SET `CreatureID`=23577 WHERE `CreatureID`=23557;
4 changes: 4 additions & 0 deletions src/server/game/Entities/Unit/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6862,6 +6862,10 @@ float Unit::SpellDamagePctDone(Unit* victim, SpellInfo const* spellProto, Damage
// Drain Soul - If the target is at or below 25% health, Drain Soul causes four times the normal damage
if (spellProto->SpellFamilyFlags[0] & 0x00004000 && !victim->HealthAbovePct(25))
DoneTotalMod *= 4;

// Don't let Conflagrate double dip from damage done bonuses (from Immolate/Shadowflame and then for itself)
if (spellProto->SpellFamilyFlags[1] & 0x800000)
DoneTotalMod = 1.0f;
break;
case SPELLFAMILY_HUNTER:
// Steady Shot
Expand Down
12 changes: 6 additions & 6 deletions src/server/game/Handlers/MailHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,17 @@ void WorldSession::HandleSendMail(WorldPackets::Mail::SendMail& sendMail)
return;
}

if (!player->HasEnoughMoney(reqmoney) && !player->IsGameMaster())
{
player->SendMailResult(0, MAIL_SEND, MAIL_ERR_NOT_ENOUGH_MONEY);
return;
}

auto mailCountCheckContinuation = [this, player = _player, receiverGuid, mailInfo = std::move(sendMail.Info), reqmoney, cost](uint32 receiverTeam, uint64 mailsCount, uint8 receiverLevel, uint32 receiverAccountId) mutable
{
if (_player != player)
return;

if (!player->HasEnoughMoney(reqmoney) && !player->IsGameMaster())
{
player->SendMailResult(0, MAIL_SEND, MAIL_ERR_NOT_ENOUGH_MONEY);
return;
}

// do not allow to have more than 100 mails in mailbox.. mails count is in opcode uint8!!! - so max can be 255..
if (mailsCount > 100)
{
Expand Down
2 changes: 0 additions & 2 deletions src/server/game/Spells/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,6 @@ void Spell::EffectSchoolDMG()
{
// Calculate damage of Immolate/Shadowflame tick
int32 pdamage = aura->GetAmount();
pdamage = unitTarget->SpellDamageBonusTaken(unitCaster, aura->GetSpellInfo(), pdamage, DOT);

// And multiply by amount of ticks to get damage potential
pdamage *= aura->GetSpellInfo()->GetMaxTicks();
Expand All @@ -434,7 +433,6 @@ void Spell::EffectSchoolDMG()
ASSERT(m_spellInfo->GetMaxTicks() > 0);
m_spellValue->EffectBasePoints[EFFECT_1] = dotBasePoints / m_spellInfo->GetMaxTicks();

apply_direct_bonus = false;
// Glyph of Conflagrate
if (!unitCaster->HasAura(56235))
unitTarget->RemoveAurasDueToSpell(aura->GetId(), unitCaster->GetGUID());
Expand Down

0 comments on commit 1b81e73

Please sign in to comment.