Jab/Foof,
Do we currently have LUA functionality where the spell script itself can react to certain scenarios? Check out this spell Hold the Line.
How would I know (in LUA) that my player blocked the incoming damage, so I could increase threat by 49? If I do not block and thus take damage, how do I know this so I can calc a 50% chance to increase threat?"When damaged this spell has a 50% chance to cast Holding the Line on target's attacker. ""On a block this spell will cast Holding the Line on target's victim. "
- "Increases Threat to target by 49 "
- "Increases Threat to target by 49 "
If there are any current examples of this kind of magic, please let me know. Otherwise, I'm looking for another LUA function I suppose.