mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-23 02:56:02 +02:00
Refactored Demo's battle action code and cleaned things up.
This commit is contained in:
parent
71d5bbc9ff
commit
7ad40f625a
14 changed files with 217 additions and 122 deletions
|
@ -13,7 +13,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.utils
|
|||
{
|
||||
static class BattleUtils
|
||||
{
|
||||
public static bool TryAttack(Character attacker, Character defender, BattleAction action, ref SubPacket errorPacket)
|
||||
public static bool TryAttack(Character attacker, Character defender, BattleAction action, ref BattleAction error)
|
||||
{
|
||||
// todo: get hit rate, hit count, set hit effect
|
||||
action.effectId |= (uint)(HitEffect.RecoilLv2 | HitEffect.Hit | HitEffect.HitVisual1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue