找回密码
 立即注册

手机短信,快捷登录

搜索

RoguePoisons

[复制链接]
 楼主| 发表于 2023-6-12 11:22:22 | 显示全部楼层 |阅读模式
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.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|魔兽世界玩家社区APP官网 ( 鄂ICP备20007009号-6 )

GMT+8, 2025-3-13 13:41 , Processed in 0.187638 second(s), 27 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表