Core/Db/Conditions:
-Drop condition CONDITION_SPELL_SCRIPT_TARGET, use other condition types instead -Change CONDITION_SOURCE_TYPE_SPELL_SCRIPT_TARGET to CONDITION_SOURCE_TYPE_SPELL_IMPLICIT_TARGET: --allow using this condition for more spell implicit target types (not just ENTRY) --SourceGroup value for this src type is now effMask and it's now required Core/Spells: Unify the way implicit targets are handled, fully implement some partially implemented target types, fix some minor bugs found on the way, general improvements and cleanup.
This commit is contained in:
@@ -360,17 +360,6 @@ struct SpellThreatEntry
|
||||
|
||||
typedef std::map<uint32, SpellThreatEntry> SpellThreatMap;
|
||||
|
||||
// Spell script target related declarations (accessed using SpellMgr functions)
|
||||
enum SpellScriptTargetType
|
||||
{
|
||||
SPELL_TARGET_TYPE_GAMEOBJECT = 0,
|
||||
SPELL_TARGET_TYPE_CREATURE = 1,
|
||||
SPELL_TARGET_TYPE_DEAD = 2,
|
||||
SPELL_TARGET_TYPE_CONTROLLED = 3,
|
||||
};
|
||||
|
||||
#define MAX_SPELL_TARGET_TYPE 4
|
||||
|
||||
// coordinates for spells (accessed using SpellMgr functions)
|
||||
struct SpellTargetPosition
|
||||
{
|
||||
@@ -726,6 +715,7 @@ class SpellMgr
|
||||
void LoadSpellAreas();
|
||||
void LoadSpellInfoStore();
|
||||
void UnloadSpellInfoStore();
|
||||
void UnloadSpellInfoImplicitTargetConditionLists();
|
||||
void LoadSpellCustomAttr();
|
||||
void LoadDbcDataCorrections();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user