You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking at Wraithstrike, and noticed you're manually implementing touch attacks, because setting the touch attack flag didn't work.
The reason it didn't work is that you're setting it in the attacker-based AC hook, and that won't necessarily run before all the other AC hooks. It seems the way that touch attacks work is that armor hooks avoid adding bonuses if the flag is set.
However, I happen to know a way to make it work. The AttackPacket from the ToHit hooks gets reused for the AC hooks, and those run before AC. So if you set the touch attack flag in the ToHit hooks, it will cause it to act as a touch attack in the AC hooks.
However, I also wonder if touch AC should work your way (via explicit caps) in general. I noticed that the amulet of natural armor gets erroneously added to touch AC. So it might be better for armor caps to be set by the general callback if the touch attack flag is set.
The text was updated successfully, but these errors were encountered:
Hello,
I was looking at Wraithstrike, and noticed you're manually implementing touch attacks, because setting the touch attack flag didn't work.
The reason it didn't work is that you're setting it in the attacker-based AC hook, and that won't necessarily run before all the other AC hooks. It seems the way that touch attacks work is that armor hooks avoid adding bonuses if the flag is set.
However, I happen to know a way to make it work. The AttackPacket from the ToHit hooks gets reused for the AC hooks, and those run before AC. So if you set the touch attack flag in the ToHit hooks, it will cause it to act as a touch attack in the AC hooks.
However, I also wonder if touch AC should work your way (via explicit caps) in general. I noticed that the amulet of natural armor gets erroneously added to touch AC. So it might be better for armor caps to be set by the general callback if the touch attack flag is set.
The text was updated successfully, but these errors were encountered: