Fix use item 3434
Нельзя применить к цели выше 30-го уровня.
Код:
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp |
Hi Den *wave
on wowhead it says about this item: "Unreliable on targets above level 30." http://old.wowhead.com/item=3434#comments So I would assume it might still work (with a lower chance) |
Hi schmoozerd.
Not so long ago, did this quest and checked that the purpose above the 30th level doesn't affect. later still I will check :) |
Возвращаемся к этому вопросу. Оказывается что, если взять предмет схожий с выше указанным, к примеру http://www.wowhead.com/item=4360 то получается, что на цель 34 уровня предмет не действует вообще. Выходит так, на каждый уровень по 10% снимается шанс, что предмет будет использован.
We come back to this question. It appears that if to take a subject similar with above specified, for example http://www.wowhead.com/item=4360 that turns out that 34 levels the subject doesn't affect the purpose in general. Leaves so, on each level on 10 % the chance acts in film that the subject will be used. Код:
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp |
м.б как то так вместо свича(просто идея)
Код:
if(targetLevel> 30) p.s по идеи можно использовать параметр max вместо 30 из Код:
Spell Level = 8, base 8, max 30, maxTarget 0 Код:
Spell Level = 0, base 0, max 24, maxTarget 0 что то типа Код:
if (max>1 && targetLevel> max) |
все что осмыслил ,пересмотрел все спелы с первым if
(думаю что как то так) в коде есть я думаю ошибки(по синтаксису) ,но тому кому надо поймет суть. Код:
if (SPELL_AURA_MOD_STUN && m_spellInfo->maxlevel > 0 && m_spellInfo->maxlevel < m_targets.getUnitTarget()->GetLevel()) |
итоговый рабочий вариант
Код:
case SPELL_AURA_MOD_STUN Код:
if (m_spellInfo->maxLevel > 0 && m_spellInfo->maxLevel < m_targets.getUnitTarget()->getLevel()) вопрос 2:что конкретно не срабатывает Эффект ? Урон вопрос 3 когда проверят до каста ? после каста вопрос 4: учитывая как я понял что почти везде шанс каста 101% ,возникает вопрос учитывать ли 1% как рандом - тоесть Код:
//101 - ( 60 - 50 ) * 10 = 1% |
little bump here
A small note about the 101 chance: I always thought that 101 chance would mean "hits always" But it is possible that the 101 chance is an entirely independend chance calculation, and in these cases we just need to use the other values for calculation Some more notes about targeting: spell http://www.wowhead.com/spell=4064 has no unit-targeting, but is AoE-Dest-Targeting, so this calculation would not fit into CheckCast. Also it would be required to ensure that the code is safe (not checked if getUnitTarget returns a valid pointer) |
Текущее время: 10:17. Часовой пояс GMT +3. |
ru-mangos.ru - Русское сообщество MaNGOS