Skip to content

Commit

Permalink
GameObject/Spell/BFD: Add research for ignoring los of blessing of bfd
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Dec 19, 2024
1 parent b9ee147 commit 147e0ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/game/Entities/GameObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ void GameObject::Use(Unit* user, SpellEntry const* spellInfo)
float radius = float(goInfo->trap.diameter) / 2.0f;
bool IsBattleGroundTrap = !radius && goInfo->trap.cooldown == 3 && m_respawnTime == 0;

if (goInfo->trap.spellId == 6636)
if (goInfo->trap.spellId == 6636 || goInfo->trap.spellId == 8733)
caster = nullptr;

if (goInfo->trap.spellId)
Expand Down
6 changes: 4 additions & 2 deletions src/game/Spells/SpellMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -1747,11 +1747,13 @@ inline bool IsIgnoreLosSpell(SpellEntry const* spellInfo)

switch (spellInfo->Id)
{
case 36795: // Cannon Channel
case 8733: // Blessing of Blackfathom - potentially hints at trap GO casts not respecting los
case 8735: // Blackfathom Teleport - same
case 24742: // Magic Wings
case 31628: // Green Beam
case 31630: // Green Beam
case 31631: // Green Beam
case 24742: // Magic Wings
case 36795: // Cannon Channel
case 40639: // Arcane Beam - Channel target inside gameobject
case 42867: // both need LOS, likely TARGET_UNIT should use LOS ignore from normal radius, not per-effect radius WIP
return true;
Expand Down

0 comments on commit 147e0ce

Please sign in to comment.