[patch] Check cast melee spell
Hi.
Melee spell cast to in front target and laterally. Constant M_PI_F not fit, rather, its value is not correct. Ближние спелы кастуются перед целью и сбоку. А, у нас стоя спиной к цели, можно бить ее любым ближним спелам. Константа M_PI_F не подходит, скорее ее значение не верно. Код:
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp |
hmm, you suggest a diff to the (rather natural PI) by 0.15, this is roughly 1/40 of a circle, so a _very_ small glitch (2 degrees on each side of the cone)
This appears strange to me :) And isn't there already an IsInFront check in another place that might need replacement/ adjustment? Also a small note: I think HasInArc should not work on point-to-point, but rather on box-to-box mechanic (which would autoamatically work as a bigger angle would) |
the related place of this check is at this line:
Код:
if ((m_spellInfo->Attributes == (SPELL_ATTR_UNK4 | SPELL_ATTR_NOT_SHAPESHIFT | SPELL_ATTR_UNK18 | SPELL_ATTR_STOP_ATTACK_TARGET)) && !target->HasInArc(M_PI_F, m_caster)) |
Цитата:
|
Очень хорошо для проверки нужных спелов подходит атрибут SPELL_ATTR_EX_UNK27
Код:
@@ -4420,11 +4420,19 @@ SpellCastResult Spell::CheckCast(bool strict) |
Текущее время: 14:44. Часовой пояс GMT +3. |
ru-mangos.ru - Русское сообщество MaNGOS