-
Notifications
You must be signed in to change notification settings - Fork 602
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BCNM] Implement BCNM20 Shooting Fish
Co-Authored-By: dallano <[email protected]>
- Loading branch information
Showing
6 changed files
with
68 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
----------------------------------- | ||
-- Aqua Ball | ||
-- Deals ranged water damage that causes knockback. | ||
-- Used by pugils in BCNM: Shooting Fish | ||
----------------------------------- | ||
require('scripts/globals/mobskills') | ||
----------------------------------- | ||
local mobskillObject = {} | ||
|
||
mobskillObject.onMobSkillCheck = function(target, mob, skill) | ||
return 0 | ||
end | ||
|
||
mobskillObject.onMobWeaponSkill = function(target, mob, skill) | ||
local damage = mob:getWeaponDmg() * 3 | ||
local power = 20 | ||
local tick = 3 | ||
local duration = power * tick | ||
|
||
damage = xi.mobskills.mobMagicalMove(mob, target, skill, damage, xi.element.WATER, 1, xi.mobskills.magicalTpBonus.MAB_BONUS, 1.5) | ||
damage = xi.mobskills.mobFinalAdjustments(damage, mob, skill, target, xi.attackType.MAGICAL, xi.damageType.WATER, xi.mobskills.shadowBehavior.IGNORE_SHADOWS) | ||
|
||
target:takeDamage(damage, mob, xi.attackType.MAGICAL, xi.damageType.WATER) | ||
xi.mobskills.mobStatusEffectMove(mob, target, xi.effect.STR_DOWN, power, tick, duration) | ||
skill:setMsg(xi.msg.basic.HIT_DMG) | ||
|
||
return damage | ||
end | ||
|
||
return mobskillObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
----------------------------------- | ||
-- Area: Horlais Peak | ||
-- Mob: Archer Pugil | ||
-- BCNM: Shooting Fish | ||
----------------------------------- | ||
---@type TMobEntity | ||
local entity = {} | ||
|
||
entity.onMobSpawn = function(mob) | ||
mob:setMobSkillAttack(2014) -- Aquaball Knockback AA Skill | ||
end | ||
|
||
entity.onMobDeath = function(mob, player, optParams) | ||
end | ||
|
||
return entity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
----------------------------------- | ||
-- Area: Horlais Peak | ||
-- Mob: Sniper Pugil | ||
-- BCNM: Shooting Fish | ||
----------------------------------- | ||
---@type TMobEntity | ||
local entity = {} | ||
|
||
entity.onMobSpawn = function(mob) | ||
mob:setMobSkillAttack(2014) -- Aquaball Knockback AA Skill | ||
end | ||
|
||
entity.onMobDeath = function(mob, player, optParams) | ||
end | ||
|
||
return entity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters