This commit is contained in:
@@ -77,7 +77,7 @@ pub struct Pokemon {
|
||||
/// The [effort values](https://bulbapedia.bulbagarden.net/wiki/Effort_values) of the Pokemon.
|
||||
effort_values: ClampedStatisticSet<u8, 0, 252>,
|
||||
/// The [nature](https://bulbapedia.bulbagarden.net/wiki/Nature) of the Pokemon.
|
||||
nature: Arc<Nature>,
|
||||
nature: Arc<dyn Nature>,
|
||||
|
||||
/// An optional nickname of the Pokemon.
|
||||
nickname: Option<String>,
|
||||
@@ -443,7 +443,7 @@ impl Pokemon {
|
||||
}
|
||||
|
||||
/// The [nature](https://bulbapedia.bulbagarden.net/wiki/Nature) of the Pokemon.
|
||||
pub fn nature(&self) -> &Arc<Nature> {
|
||||
pub fn nature(&self) -> &Arc<dyn Nature> {
|
||||
&self.nature
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user