aboutsummaryrefslogtreecommitdiff
path: root/src/server/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game')
-rw-r--r--src/server/game/Entities/GameObject/GameObject.cpp3
-rw-r--r--src/server/game/Entities/GameObject/GameObject.h2
-rw-r--r--src/server/game/Spells/SpellEffects.cpp60
3 files changed, 4 insertions, 61 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp
index d8c310aa055..01bdf63d464 100644
--- a/src/server/game/Entities/GameObject/GameObject.cpp
+++ b/src/server/game/Entities/GameObject/GameObject.cpp
@@ -2211,7 +2211,7 @@ void GameObject::GetRespawnPosition(float &x, float &y, float &z, float* ori /*
*ori = GetOrientation();
}
-float GameObject::GetInteractionDistance()
+float GameObject::GetInteractionDistance() const
{
switch (GetGoType())
{
@@ -2221,6 +2221,7 @@ float GameObject::GetInteractionDistance()
case GAMEOBJECT_TYPE_MAILBOX:
return 10.0f;
case GAMEOBJECT_TYPE_FISHINGHOLE:
+ case GAMEOBJECT_TYPE_FISHINGNODE:
return 20.0f + CONTACT_DISTANCE; // max spell range
default:
return INTERACTION_DISTANCE;
diff --git a/src/server/game/Entities/GameObject/GameObject.h b/src/server/game/Entities/GameObject/GameObject.h
index aade937cc6d..8f32f5fe080 100644
--- a/src/server/game/Entities/GameObject/GameObject.h
+++ b/src/server/game/Entities/GameObject/GameObject.h
@@ -831,7 +831,7 @@ class GameObject : public WorldObject, public GridObject<GameObject>, public Map
float GetStationaryZ() const { if (GetGOInfo()->type != GAMEOBJECT_TYPE_MO_TRANSPORT) return m_stationaryPosition.GetPositionZ(); return GetPositionZ(); }
float GetStationaryO() const { if (GetGOInfo()->type != GAMEOBJECT_TYPE_MO_TRANSPORT) return m_stationaryPosition.GetOrientation(); return GetOrientation(); }
- float GetInteractionDistance();
+ float GetInteractionDistance() const;
protected:
bool AIM_Initialize();
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 39448358d03..f152e4f5976 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -3800,65 +3800,6 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex)
}
break;
}
- case SPELLFAMILY_PALADIN:
- {
- // Judgement (seal trigger)
- if (m_spellInfo->GetCategory() == SPELLCATEGORY_JUDGEMENT)
- {
- if (!unitTarget || !unitTarget->IsAlive())
- return;
- uint32 spellId1 = 0;
- uint32 spellId2 = 0;
-
- // Judgement self add switch
- switch (m_spellInfo->Id)
- {
- case 53407: spellId1 = 20184; break; // Judgement of Justice
- case 20271: // Judgement of Light
- case 57774: spellId1 = 20185; break; // Judgement of Light
- case 53408: spellId1 = 20186; break; // Judgement of Wisdom
- default:
- TC_LOG_ERROR("spells", "Unsupported Judgement (seal trigger) spell (Id: %u) in Spell::EffectScriptEffect", m_spellInfo->Id);
- return;
- }
- // all seals have aura dummy in 2 effect
- Unit::AuraApplicationMap & sealAuras = m_caster->GetAppliedAuras();
- for (Unit::AuraApplicationMap::iterator iter = sealAuras.begin(); iter != sealAuras.end();)
- {
- Aura* aura = iter->second->GetBase();
- if (aura->GetSpellInfo()->GetSpellSpecific() == SPELL_SPECIFIC_SEAL)
- {
- if (AuraEffect* aureff = aura->GetEffect(2))
- if (aureff->GetAuraType() == SPELL_AURA_DUMMY)
- {
- if (sSpellMgr->GetSpellInfo(aureff->GetAmount()))
- spellId2 = aureff->GetAmount();
- break;
- }
- if (!spellId2)
- {
- switch (iter->first)
- {
- // Seal of light, Seal of wisdom, Seal of justice
- case 20165:
- case 20166:
- case 20164:
- spellId2 = 54158;
- }
- }
- break;
- }
- else
- ++iter;
- }
- if (spellId1)
- m_caster->CastSpell(unitTarget, spellId1, true);
- if (spellId2)
- m_caster->CastSpell(unitTarget, spellId2, true);
- return;
- }
- break;
- }
case SPELLFAMILY_DEATHKNIGHT:
{
// Pestilence
@@ -5518,6 +5459,7 @@ void Spell::SummonGuardian(uint32 i, uint32 entry, SummonPropertiesEntry const*
TempSummon* summon = map->SummonCreature(entry, pos, properties, duration, caster, m_spellInfo->Id);
if (!summon)
return;
+
if (summon->HasUnitTypeMask(UNIT_MASK_GUARDIAN))
((Guardian*)summon)->InitStatsForLevel(level);