Skip to content

Commit

Permalink
Merge 3.3.5-base_patch to 3.3.5-passive_anticheat
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions committed Feb 12, 2024
2 parents 29f2414 + c002e9e commit 180a0ad
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 3 additions & 2 deletions sql/base/characters_database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ DROP TABLE IF EXISTS `channels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `channels` (
`name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`team` int unsigned NOT NULL,
`announce` tinyint unsigned NOT NULL DEFAULT '1',
`ownership` tinyint unsigned NOT NULL DEFAULT '1',
Expand Down Expand Up @@ -2683,7 +2683,8 @@ INSERT INTO `updates` VALUES
('2023_05_19_00_characters.sql','5E0C9338554BAA481566EDFF3FE2FCEFF1B67DA9','ARCHIVED','2023-05-19 18:40:42',0),
('2023_06_14_00_characters.sql','0595B21DCFC0A04F2D8DF1F7BC018C758895DBE5','ARCHIVED','2023-06-14 19:34:24',0),
('2023_09_10_00_characters.sql','5DE09CA31B5168CF3622CB462816B6C598893D96','ARCHIVED','2023-09-10 12:23:34',0),
('2024_01_21_00_characters.sql','4D27D8DAC9F78795DB6938B54F32502EF8D8AAE6','ARCHIVED','2024-01-21 11:38:22',0);
('2024_01_21_00_characters.sql','4D27D8DAC9F78795DB6938B54F32502EF8D8AAE6','ARCHIVED','2024-01-21 11:38:22',0),
('2024_02_05_00_characters.sql','1777CBCA822AD85777DA4A390DF7AAF41AF68EBD','RELEASED','2024-02-05 12:17:19',0);
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
UNLOCK TABLES;

Expand Down
2 changes: 2 additions & 0 deletions sql/updates/characters/3.3.5/2024_02_05_00_characters.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--
ALTER TABLE `channels` MODIFY `name` VARCHAR(128) NOT NULL COLLATE utf8mb4_bin;
9 changes: 7 additions & 2 deletions src/server/game/Spells/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2140,9 +2140,14 @@ void Spell::AddUnitTarget(Unit* target, uint32 effectMask, bool checkIfValid /*=
// If target reflect spell back to caster
if (targetInfo.MissCondition == SPELL_MISS_REFLECT)
{
// Calculate reflected spell result on caster (shouldn't be able to reflect gameobject spells)
// Shouldn't be able to reflect gameobject spells
Unit* unitCaster = ASSERT_NOTNULL(m_caster->ToUnit());
targetInfo.ReflectResult = unitCaster->SpellHitResult(unitCaster, m_spellInfo, false); // can't reflect twice

// Calculate reflected spell result on caster
if (m_spellInfo->CheckTarget(target, unitCaster, implicit) == SPELL_CAST_OK)
targetInfo.ReflectResult = unitCaster->SpellHitResult(unitCaster, m_spellInfo, false); // can't reflect twice
else
targetInfo.ReflectResult = SPELL_MISS_IMMUNE;

// Proc spell reflect aura when missile hits the original target
target->m_Events.AddEvent(new ProcReflectDelayed(target, m_originalCasterGUID), target->m_Events.CalculateTime(Milliseconds(targetInfo.TimeDelay)));
Expand Down

0 comments on commit 180a0ad

Please sign in to comment.