Core/Instances: Kill instance_encounters table, it is no longer neccessary
Port From (https://github.com/TrinityCore/TrinityCore/commit/47fc3cb852324119e81c01015b7cc4f39d43e559)
This commit is contained in:
@@ -1339,35 +1339,6 @@ namespace Scripts.Spells.Generic
|
||||
}
|
||||
}
|
||||
|
||||
[Script]
|
||||
class spell_gen_dungeon_credit : SpellScript
|
||||
{
|
||||
public override bool Load()
|
||||
{
|
||||
return GetCaster().GetTypeId() == TypeId.Unit;
|
||||
}
|
||||
|
||||
void CreditEncounter()
|
||||
{
|
||||
// This hook is executed for every target, make sure we only credit instance once
|
||||
if (_handled)
|
||||
return;
|
||||
|
||||
_handled = true;
|
||||
Unit caster = GetCaster();
|
||||
InstanceScript instance = caster.GetInstanceScript();
|
||||
if (instance != null)
|
||||
instance.UpdateEncounterStateForSpellCast(GetSpellInfo().Id, caster);
|
||||
}
|
||||
|
||||
public override void Register()
|
||||
{
|
||||
AfterHit.Add(new(CreditEncounter));
|
||||
}
|
||||
|
||||
bool _handled = false;
|
||||
}
|
||||
|
||||
[Script] // 50051 - Ethereal Pet Aura
|
||||
class spell_ethereal_pet_AuraScript : AuraScript
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user