mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 13:47:23 +01:00
Core/DataStores: Updated opcodes and db2 to 7.0.3.21414
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
#include "SpellHistory.h"
|
||||
#include "SkillDiscovery.h"
|
||||
#include "Battleground.h"
|
||||
#include "DBCStores.h"
|
||||
|
||||
// Generic script for handling item dummy effects which trigger another spell.
|
||||
class spell_item_trigger_spell : public SpellScriptLoader
|
||||
|
||||
@@ -745,6 +745,8 @@ class spell_mage_living_bomb : public SpellScriptLoader
|
||||
|
||||
bool Validate(SpellInfo const* spellInfo) override
|
||||
{
|
||||
if (!spellInfo->GetEffect(EFFECT_1))
|
||||
return false;
|
||||
if (!sSpellMgr->GetSpellInfo(uint32(spellInfo->GetEffect(EFFECT_1)->CalcValue())))
|
||||
return false;
|
||||
return true;
|
||||
|
||||
@@ -107,9 +107,7 @@ class spell_gen_pet_calculate : public SpellScriptLoader
|
||||
if (Player* owner = GetCaster()->GetOwner()->ToPlayer())
|
||||
{
|
||||
// For others recalculate it from:
|
||||
float CritSpell = 0.0f;
|
||||
// Crit from Intellect
|
||||
CritSpell += owner->GetSpellCritFromIntellect();
|
||||
float CritSpell = 5.0f;
|
||||
// Increase crit from SPELL_AURA_MOD_SPELL_CRIT_CHANCE
|
||||
CritSpell += owner->GetTotalAuraModifier(SPELL_AURA_MOD_SPELL_CRIT_CHANCE);
|
||||
// Increase crit from SPELL_AURA_MOD_CRIT_PCT
|
||||
@@ -126,9 +124,7 @@ class spell_gen_pet_calculate : public SpellScriptLoader
|
||||
if (Player* owner = GetCaster()->GetOwner()->ToPlayer())
|
||||
{
|
||||
// For others recalculate it from:
|
||||
float CritMelee = 0.0f;
|
||||
// Crit from Agility
|
||||
CritMelee += owner->GetMeleeCritFromAgility();
|
||||
float CritMelee = 5.0f;
|
||||
// Increase crit from SPELL_AURA_MOD_WEAPON_CRIT_PERCENT
|
||||
CritMelee += owner->GetTotalAuraModifier(SPELL_AURA_MOD_WEAPON_CRIT_PERCENT);
|
||||
// Increase crit from SPELL_AURA_MOD_CRIT_PCT
|
||||
@@ -676,9 +672,7 @@ public:
|
||||
if (Player* owner = GetCaster()->GetOwner()->ToPlayer())
|
||||
{
|
||||
// For others recalculate it from:
|
||||
float CritSpell = 0.0f;
|
||||
// Crit from Intellect
|
||||
CritSpell += owner->GetSpellCritFromIntellect();
|
||||
float CritSpell = 5.0f;
|
||||
// Increase crit from SPELL_AURA_MOD_SPELL_CRIT_CHANCE
|
||||
CritSpell += owner->GetTotalAuraModifier(SPELL_AURA_MOD_SPELL_CRIT_CHANCE);
|
||||
// Increase crit from SPELL_AURA_MOD_CRIT_PCT
|
||||
@@ -698,9 +692,7 @@ public:
|
||||
if (Player* owner = GetCaster()->GetOwner()->ToPlayer())
|
||||
{
|
||||
// For others recalculate it from:
|
||||
float CritMelee = 0.0f;
|
||||
// Crit from Agility
|
||||
CritMelee += owner->GetMeleeCritFromAgility();
|
||||
float CritMelee = 5.0f;
|
||||
// Increase crit from SPELL_AURA_MOD_WEAPON_CRIT_PERCENT
|
||||
CritMelee += owner->GetTotalAuraModifier(SPELL_AURA_MOD_WEAPON_CRIT_PERCENT);
|
||||
// Increase crit from SPELL_AURA_MOD_CRIT_PCT
|
||||
@@ -1266,9 +1258,7 @@ public:
|
||||
if (GetCaster()->GetOwner()->ToPlayer())
|
||||
{
|
||||
// For others recalculate it from:
|
||||
float CritSpell = 0.0f;
|
||||
// Crit from Intellect
|
||||
// CritSpell += owner->GetSpellCritFromIntellect();
|
||||
float CritSpell = 5.0f;
|
||||
// Increase crit from SPELL_AURA_MOD_SPELL_CRIT_CHANCE
|
||||
// CritSpell += owner->GetTotalAuraModifier(SPELL_AURA_MOD_SPELL_CRIT_CHANCE);
|
||||
// Increase crit from SPELL_AURA_MOD_CRIT_PCT
|
||||
@@ -1287,9 +1277,7 @@ public:
|
||||
if (GetCaster()->GetOwner()->ToPlayer())
|
||||
{
|
||||
// For others recalculate it from:
|
||||
float CritMelee = 0.0f;
|
||||
// Crit from Agility
|
||||
// CritMelee += owner->GetMeleeCritFromAgility();
|
||||
float CritMelee = 5.0f;
|
||||
// Increase crit from SPELL_AURA_MOD_WEAPON_CRIT_PERCENT
|
||||
// CritMelee += owner->GetTotalAuraModifier(SPELL_AURA_MOD_WEAPON_CRIT_PERCENT);
|
||||
// Increase crit from SPELL_AURA_MOD_CRIT_PCT
|
||||
|
||||
Reference in New Issue
Block a user