An overly complicated poison aura. This could have been done more simply with just standard triggers for Weapon Enchant, but this accomplishes two goals that standard triggers couldn't (for this specific trigger type):
1) A mainhand and offhand poison bar with a single aura, rather than two separate auras.
2) Properly showing the poison icon rather than showing the weapon icon.
Accomplishing #1 requires the use of a Trigger State Updater trigger type
Accomplishing #2 requires a manual mapping of EnchantIDs to icons, because with only the enchant ID there is no data linking it to the corresponding spell.
Dev Notes:
There is some inescapable lagtime between when weapon enchants are available with GetWeaponEnchantInfo(), so occasionally the standard event (UNIT_INVENTORY_CHANGED) won't be able to capture the data. I've implemented a C_Timer.NewTicker to force a re-update after a time that should be appropriate. Occasionally this will mean the update will take a second. |
1、在门户里发表的文章仅代表作者本人的观点,与本网站立场无关。
2、门户的所有内容都不保证其准确性,有效性,时间性。阅读本站内容因误导等因素而造成的损失本站不承担连带责任。
3、当政府机关依照法定程序要求披露信息时,论坛均得免责。
4、若因线路及非本站所能控制范围的故障导致暂停服务期间造成的一切不便与损失,论坛不负任何责任。
5、注册会员通过任何手段和方法针对论坛进行破坏,我们有权对其行为作出处理。并保留进步追究其责任的权利。