mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-28 21:02:14 +01:00
Core/AreaTriggers: Refactor (#29500)
* Moved IsServerside to custom flags * Flags moved from areatrigger_template to areatrigger_create_properties * New field to create custom CreateProperties (IsCustom) * New field to reference custom areatriggers (IsAreatriggerCustom) * Moved fields for shape data to areatrigger_create_properties
This commit is contained in:
@@ -5289,9 +5289,10 @@ void Spell::EffectCreateAreaTrigger()
|
||||
if (!unitCaster || !m_targets.HasDst())
|
||||
return;
|
||||
|
||||
AreaTriggerCreatePropertiesId createPropertiesId = { uint32(effectInfo->MiscValue), false };
|
||||
int32 duration = GetSpellInfo()->CalcDuration(GetCaster());
|
||||
|
||||
AreaTrigger::CreateAreaTrigger(effectInfo->MiscValue, unitCaster, nullptr, GetSpellInfo(), destTarget->GetPosition(), duration, m_SpellVisual, this);
|
||||
AreaTrigger::CreateAreaTrigger(createPropertiesId, destTarget->GetPosition(), duration, unitCaster, nullptr, m_SpellVisual, GetSpellInfo(), this);
|
||||
}
|
||||
|
||||
void Spell::EffectRemoveTalent()
|
||||
|
||||
Reference in New Issue
Block a user