This commit is contained in:
@@ -6,7 +6,7 @@ use hashbrown::HashSet;
|
||||
use crate::dynamic_data::choices::{MoveChoice, TurnChoice};
|
||||
use crate::dynamic_data::Pokemon;
|
||||
use crate::dynamic_data::{LearnedMove, MoveLearnMethod};
|
||||
use crate::static_data::{MoveCategory, MoveData, MoveTarget, SecondaryEffectImpl};
|
||||
use crate::static_data::{MoveCategory, MoveData, MoveDataImpl, MoveTarget, SecondaryEffectImpl};
|
||||
use crate::{StringKey, ValueIdentifiable, ValueIdentifier};
|
||||
|
||||
/// The misc library holds several misc functions required for the battle to run.
|
||||
@@ -31,7 +31,7 @@ pub struct Gen7MiscLibrary {
|
||||
impl Gen7MiscLibrary {
|
||||
/// Instantiates a new MiscLibrary.
|
||||
pub fn new() -> Self {
|
||||
let struggle_data = Arc::new(MoveData::new(
|
||||
let struggle_data: Arc<dyn MoveData> = Arc::new(MoveDataImpl::new(
|
||||
&StringKey::new("struggle"),
|
||||
0.into(),
|
||||
MoveCategory::Physical,
|
||||
|
||||
Reference in New Issue
Block a user