mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
Add GetActionType for scripts.
Fix miss check for tp gain on attacks
This commit is contained in:
parent
4c850ea768
commit
905cbf7d3c
@ -847,7 +847,7 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||||||
}
|
}
|
||||||
|
|
||||||
//TP is only gained from autoattacks and abilities
|
//TP is only gained from autoattacks and abilities
|
||||||
if (action.commandType == CommandType.AutoAttack || action.commandType == CommandType.Ability && action.hitType != HitType.Miss)
|
if ((action.commandType == CommandType.AutoAttack || action.commandType == CommandType.Ability) && action.hitType != HitType.Miss)
|
||||||
{
|
{
|
||||||
//TP gained on an attack is usually 100 * delay.
|
//TP gained on an attack is usually 100 * delay.
|
||||||
//Store TP seems to add .1% per point.
|
//Store TP seems to add .1% per point.
|
||||||
|
@ -387,5 +387,10 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
|
|||||||
{
|
{
|
||||||
return (ushort) commandType;
|
return (ushort) commandType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ushort GetActionType()
|
||||||
|
{
|
||||||
|
return (ushort) actionType;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user