Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts: src/server/scripts/EasternKingdoms/ZulAman/instance_zulaman.cpp src/server/scripts/EasternKingdoms/zone_isle_of_queldanas.cpp src/server/scripts/Spells/spell_dk.cpp src/server/scripts/Spells/spell_druid.cpp src/server/scripts/Spells/spell_shaman.cpp src/server/scripts/Spells/spell_warrior.cpp
This commit is contained in:
commit
da91ae1f22
93 files changed
+2131
-827
No files matched your search
@@ -78,6 +78,13 @@ class spell_dk_anti_magic_shell_raid : public SpellScriptLoader
|
||||
{
|
||||
PrepareAuraScript(spell_dk_anti_magic_shell_raid_AuraScript);
|
||||
|
||||
public:
|
||||
spell_dk_anti_magic_shell_raid_AuraScript()
|
||||
{
|
||||
absorbPct = 0;
|
||||
}
|
||||
|
||||
private:
|
||||
uint32 absorbPct;
|
||||
|
||||
bool Load() override
|
||||
@@ -120,6 +127,14 @@ class spell_dk_anti_magic_shell_self : public SpellScriptLoader
|
||||
{
|
||||
PrepareAuraScript(spell_dk_anti_magic_shell_self_AuraScript);
|
||||
|
||||
public:
|
||||
spell_dk_anti_magic_shell_self_AuraScript()
|
||||
{
|
||||
absorbPct = 0;
|
||||
hpPct = 0;
|
||||
}
|
||||
|
||||
private:
|
||||
uint32 absorbPct, hpPct;
|
||||
bool Load() override
|
||||
{
|
||||
@@ -177,6 +192,13 @@ class spell_dk_anti_magic_zone : public SpellScriptLoader
|
||||
{
|
||||
PrepareAuraScript(spell_dk_anti_magic_zone_AuraScript);
|
||||
|
||||
public:
|
||||
spell_dk_anti_magic_zone_AuraScript()
|
||||
{
|
||||
absorbPct = 0;
|
||||
}
|
||||
|
||||
private:
|
||||
uint32 absorbPct;
|
||||
|
||||
bool Load() override
|
||||
@@ -228,6 +250,13 @@ class spell_dk_blood_boil : public SpellScriptLoader
|
||||
{
|
||||
PrepareSpellScript(spell_dk_blood_boil_SpellScript);
|
||||
|
||||
public:
|
||||
spell_dk_blood_boil_SpellScript()
|
||||
{
|
||||
_executed = false;
|
||||
}
|
||||
|
||||
private:
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_DK_BLOOD_BOIL_TRIGGERED))
|
||||
@@ -237,7 +266,6 @@ class spell_dk_blood_boil : public SpellScriptLoader
|
||||
|
||||
bool Load() override
|
||||
{
|
||||
_executed = false;
|
||||
return GetCaster()->GetTypeId() == TYPEID_PLAYER && GetCaster()->getClass() == CLASS_DEATH_KNIGHT;
|
||||
}
|
||||
|
||||
@@ -274,6 +302,13 @@ class spell_dk_blood_gorged : public SpellScriptLoader
|
||||
{
|
||||
PrepareAuraScript(spell_dk_blood_gorged_AuraScript);
|
||||
|
||||
public:
|
||||
spell_dk_blood_gorged_AuraScript()
|
||||
{
|
||||
_procTarget = nullptr;
|
||||
}
|
||||
|
||||
private:
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_DK_BLOOD_GORGED_HEAL))
|
||||
@@ -281,12 +316,6 @@ class spell_dk_blood_gorged : public SpellScriptLoader
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Load() override
|
||||
{
|
||||
_procTarget = NULL;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CheckProc(ProcEventInfo& /*eventInfo*/)
|
||||
{
|
||||
_procTarget = GetTarget()->GetOwner();
|
||||
@@ -1192,6 +1221,14 @@ class spell_dk_raise_dead : public SpellScriptLoader
|
||||
{
|
||||
PrepareSpellScript(spell_dk_raise_dead_SpellScript);
|
||||
|
||||
public:
|
||||
spell_dk_raise_dead_SpellScript()
|
||||
{
|
||||
_result = SPELL_CAST_OK;
|
||||
_corpse = false;
|
||||
}
|
||||
|
||||
private:
|
||||
bool Validate(SpellInfo const* spellInfo) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(spellInfo->Effects[EFFECT_1].CalcValue())
|
||||
@@ -1204,8 +1241,6 @@ class spell_dk_raise_dead : public SpellScriptLoader
|
||||
|
||||
bool Load() override
|
||||
{
|
||||
_result = SPELL_CAST_OK;
|
||||
_corpse = false;
|
||||
return GetCaster()->GetTypeId() == TYPEID_PLAYER;
|
||||
}
|
||||
|
||||
@@ -1387,14 +1422,16 @@ class spell_dk_scourge_strike : public SpellScriptLoader
|
||||
class spell_dk_scourge_strike_SpellScript : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_dk_scourge_strike_SpellScript);
|
||||
float multiplier;
|
||||
|
||||
bool Load() override
|
||||
public:
|
||||
spell_dk_scourge_strike_SpellScript()
|
||||
{
|
||||
multiplier = 1.0f;
|
||||
return true;
|
||||
}
|
||||
|
||||
private:
|
||||
float multiplier;
|
||||
|
||||
bool Validate(SpellInfo const* /*spellInfo*/) override
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(SPELL_DK_SCOURGE_STRIKE_TRIGGERED))
|
||||
|
||||
Reference in new issue
Block a user