Тема: Fix use item 3434
Показать сообщение отдельно
Старый 18.11.2012, 15:25   #8
schmoozerd
MaNGOS Dev
 
Регистрация: 17.11.2011
Сообщений: 99
Сказал(а) спасибо: 35
Поблагодарили 80 раз(а) в 26 сообщениях
schmoozerd Скоро придёт к известности
По умолчанию

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)
schmoozerd вне форума   Ответить с цитированием