Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

被减速后虽然能打到但还是依然会变身 #22

Open
evan-xie opened this issue Jul 12, 2022 · 2 comments
Open

被减速后虽然能打到但还是依然会变身 #22

evan-xie opened this issue Jul 12, 2022 · 2 comments

Comments

@evan-xie
Copy link

evan-xie commented Jul 12, 2022

function wc.needUnroot()
	--打得着并且不是瓦斯琪纠缠
	if IsSpellInRange('爪击', 'target') == 1 and not wc.getDebuff(38316) then
		return false
	--定身或者减速了
	elseif wc.rooted then return true
	elseif select(2, GetUnitSpeed('player')) < 7 and not IsStealthed() then return true
	else return false end
end

--修改后
function wc.needUnroot()
	--打得着并且不是瓦斯琪纠缠
	local SpellName = GetSpellInfo(27000)
	if IsSpellInRange(SpellName, 'target') == 1 and not wc.getDebuff(38316) then
		return false
	--定身或者减速了
	elseif wc.rooted then return true
	elseif select(2, GetUnitSpeed('player')) < 7 and not IsStealthed() then return true
	else return false end
end

--m我手动设置的蓝量
#showtooltip [stealth]突襲;割碎(獵豹形態)
/script dps(40,m)
/use 能量轉換器
/use [nostealth]13
/use [nostealth]14
/cast [stealth]突襲;[form:3]割碎(獵豹形態);!獵豹形態(變身)
/script wcEnd()
/startattack [nostealth]

大佬发现个小的问题,最近在奎岛和竞技场玩的时候,发现打有冰甲的目标或者站在猎人的冰霜陷阱上时,还是会不停的变身。
能打到还是会依然变身,然后翻了下发现技能名称是简中的^_^,但是因为我在台服,所以判定失败了,修改改成技能id就好了,望更新。
PS:但因为ID是满级6级的爪击不晓得低级使用会不会有异常,没有进行测试。

@superlahm
Copy link

用技能ID可能会导致一些问题,如技能未满级或者客户端升级至巫妖王。建议加入GetLocale()函数,然后用返回的客户端语言类型直接指定对应语言的技能名称,如zhCN对应'爪击',enUS对应'Claw'

@alawing
Copy link
Owner

alawing commented Sep 17, 2022

以后版本实现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants