forked from Upstream/mmocore
This fixes the deprecated setSkillCasting, and also fixes the casting-timeout system to use the latest action, whether its the casting mode enter or the casting skill action.
This commit is contained in:
parent
99dbb95b63
commit
42397c550c
@ -1058,7 +1058,7 @@ public class PlayerData extends SynchronizedDataHolder implements OfflinePlayerD
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return if the "skill-casting.timeout" integer (second) is less than the most recent event beteen CAST_SKILL and ENTER_CASTING, it chooses the most recent one as its comparison. This is used for the timeout of casting. Returns false if the value is 0 or if the player is not casting.
|
* @return true if the "skill-casting.timeout" integer (second) is less than the most recent event beteen CAST_SKILL and ENTER_CASTING, it chooses the most recent one as its comparison. This is used for the timeout of casting. Returns false if the value is 0 or if the player is not casting.
|
||||||
*/
|
*/
|
||||||
public boolean isCastingTimeoutExpired() {
|
public boolean isCastingTimeoutExpired() {
|
||||||
if (MMOCore.plugin.configManager.castingTimeoutTime <= 0) return false;
|
if (MMOCore.plugin.configManager.castingTimeoutTime <= 0) return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user