Add Psychic Terrain priority block effect and terrain messages
This commit is contained in:
1 parent
47a51c9958
commit
aa1e1a480f
4 files changed
+49
-10
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import Move from "./move";
|
||||
import { Type } from "./type";
|
||||
|
||||
export enum TerrainType {
|
||||
@@ -42,6 +43,15 @@ export class Terrain {
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
isMoveTerrainCancelled(move: Move): boolean {
|
||||
switch (this.terrainType) {
|
||||
case TerrainType.PSYCHIC:
|
||||
return move.priority > 0;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export function getTerrainColor(terrainType: TerrainType): [ integer, integer, integer ] {
|
||||
|
||||
Reference in new issue
Block a user