Core/Players: Implement warband scene collection

Port From (https://github.com/TrinityCore/TrinityCore/commit/29e032707686b18bbcce7029e8dd2eaa6606f6d4)
This commit is contained in:
Hondacrx
2025-06-16 16:42:29 -04:00
parent af80dc75f2
commit 9287b9b3a7
15 changed files with 349 additions and 23 deletions
+13
View File
@@ -5933,6 +5933,19 @@ namespace Game.Spells
target.UpdateVisibleObjectInteractions(true, false, true, true);
}
[SpellEffectHandler(SpellEffectName.LearnWarbanScene)]
void EffectLearnWarbandScene()
{
if (effectHandleMode != SpellEffectHandleMode.HitTarget)
return;
Player target = unitTarget?.ToPlayer();
if (target == null)
return;
target.GetSession().GetCollectionMgr().AddWarbandScene((uint)effectInfo.MiscValue);
}
}
public class DispelableAura