Core/Players: Implement warband scene collection
Port From (https://github.com/TrinityCore/TrinityCore/commit/29e032707686b18bbcce7029e8dd2eaa6606f6d4)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user