Updated Map Server namespace. Moved all other data folders (www and sql) to data folder. Renamed boot name to Project Meteor.

This commit is contained in:
Filip Maj 2019-06-19 01:10:15 -04:00
parent 18ef69f3d1
commit 91549bff7a
1823 changed files with 102704 additions and 901 deletions

View file

@ -0,0 +1,15 @@
require("battleUtils")
--If person who cast cover is within 8y, change the action's target to them
--Not sure what attacks are valid. It only says "melee attacks", unsure if that includes weaponskills and abilities or just auto attacks
--Right now this will probably be really buggy, since Covered is not necessarily the first effect that will activate on the target
--Really need to do more research on this, figure out how it interacts with multi-hit attacks, aoe attacks (if those count as melee ever?), etc.
--If it redirects the whole attack instead of a single hit, we might need a new that activates while iterating over targets.
function onPreAction(effect, caster, target, skill, action, actionContainer)
if not skill.isRanged then
if effect.GetSource().IsAlive() and getDistanceBetweenActors(effect.GetSource(), target) <= 8 then
target = effect.GetSource();
end
end
end;