Neth
BETA Tester
Hi, this little diff will fix totem going through LoS (useful in arena)
I adapted it for newest TC ( as of we speak )
I adapted it for newest TC ( as of we speak )
Code:
diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp
index a26c035..97507fc 100644
--- a/src/server/game/Spells/Spell.cpp
+++ b/src/server/game/Spells/Spell.cpp
@@ -1454,10 +1454,19 @@ void Spell::SelectImplicitCasterDestTargets(SpellEffIndex effIndex, SpellImplici
dist = objSize + (dist - objSize) * (float)rand_norm();
Position pos;
- if (targetType.GetTarget() == TARGET_DEST_CASTER_FRONT_LEAP)
- m_caster->GetFirstCollisionPosition(pos, dist, angle);
- else
- m_caster->GetNearPosition(pos, dist, angle);
+ switch (targetType.GetTarget())
+ {
+ case TARGET_DEST_CASTER_FRONT_LEAP:
+ case TARGET_DEST_CASTER_FRONT_LEFT:
+ case TARGET_DEST_CASTER_BACK_LEFT:
+ case TARGET_DEST_CASTER_BACK_RIGHT:
+ case TARGET_DEST_CASTER_FRONT_RIGHT:
+ m_caster->GetFirstCollisionPosition(pos, dist, angle);
+ break;
+ default:
+ m_caster->GetNearPosition(pos, dist, angle);
+ break;
+ }
m_targets.SetDst(*m_caster);
m_targets.ModDst(pos);
}