aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellScript.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2020-06-12 01:29:18 +0200
committerShauren <shauren.trinity@gmail.com>2020-06-12 01:29:18 +0200
commitc7306439e7004288fb85890d6a5f730cf1761d71 (patch)
treea1b6fd4af385923f321ff24ef4d66d09374397b9 /src/server/game/Spells/SpellScript.h
parent1cdd1d0249ad49c860e117e1e39d451e1a3fbe43 (diff)
Core/Spells: Implement using different difficulty data from all spell related db2s, not just SpellEffect and SpellPower
Diffstat (limited to 'src/server/game/Spells/SpellScript.h')
-rw-r--r--src/server/game/Spells/SpellScript.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellScript.h b/src/server/game/Spells/SpellScript.h
index 5b57a7df5b6..40920ba6f20 100644
--- a/src/server/game/Spells/SpellScript.h
+++ b/src/server/game/Spells/SpellScript.h
@@ -47,6 +47,7 @@ class WorldObject;
struct SpellDestination;
struct SpellModifier;
struct SpellValue;
+enum Difficulty : uint8;
enum class ItemContext : uint8;
#define SPELL_EFFECT_ANY (uint16)-1
@@ -483,6 +484,9 @@ class TC_GAME_API SpellScript : public _SpellScript
void FinishCast(SpellCastResult result, uint32* param1 = nullptr, uint32* param2 = nullptr);
void SetCustomCastResultMessage(SpellCustomErrors result);
+
+ // returns desired cast difficulty for triggered spells
+ Difficulty GetCastDifficulty() const;
};
// AuraScript interface - enum used for runtime checks of script function calls
@@ -936,6 +940,9 @@ class TC_GAME_API AuraScript : public _SpellScript
Unit* GetTarget() const;
// returns AuraApplication object of currently processed target
AuraApplication const* GetTargetApplication() const;
+
+ // returns desired cast difficulty for triggered spells
+ Difficulty GetCastDifficulty() const;
};
//