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:
hondacrx
2024-01-29 15:22:25 -05:00
parent c36e0d7f73
commit d96f7fb821
9 changed files with 45 additions and 203 deletions
-29
View File
@@ -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
{