-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added anti knockback abilities #264
Conversation
BossMod/Components/Knockback.cs
Outdated
@@ -30,6 +30,7 @@ protected struct PlayerImmuneState | |||
{ | |||
public DateTime ArmsLengthSurecastExpire; // 0 if not active | |||
public DateTime InnerStrengthExpire; // 0 if not active | |||
public DateTime ManawallExpire; // 0 if not active | |||
|
|||
public bool ImmuneAt(DateTime time) => ArmsLengthSurecastExpire > time || InnerStrengthExpire > time; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to include the check here for it to actually work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed it
BossMod/Components/Knockback.cs
Outdated
@@ -30,6 +30,7 @@ protected struct PlayerImmuneState | |||
{ | |||
public DateTime ArmsLengthSurecastExpire; // 0 if not active | |||
public DateTime InnerStrengthExpire; // 0 if not active | |||
public DateTime ManawallExpire; // 0 if not active |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rename to [Role/Job/Duty]BuffExpire?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea
Added 3 anti knockback abilities to the knockback component. I hope I have done this right and also not forget about any.