Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kjirou committed Jan 7, 2017
1 parent 412af7a commit f3f3df9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/immutable/acts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ const fixture = [
{
constants: {
id: 'MAGICAL_BLAST',
friendshipType: 'UNFRIENDLY',
aimRange: {
type: 'REACHABLE',
reach: 2,
friendshipType: 'UNFRIENDLY',
},
effectRange: {
type: 'BALL',
Expand All @@ -23,10 +23,10 @@ const fixture = [
{
constants: {
id: 'MELEE_ATTACK',
friendshipType: 'UNFRIENDLY',
aimRange: {
type: 'REACHABLE',
reach: 1,
friendshipType: 'UNFRIENDLY',
},
effectRange: {
type: 'UNIT',
Expand All @@ -37,10 +37,10 @@ const fixture = [
{
constants: {
id: 'TREATMENT',
friendshipType: 'FRIENDLY',
aimRange: {
type: 'REACHABLE',
reach: 1,
friendshipType: 'FRIENDLY',
},
effectRange: {
type: 'UNIT',
Expand Down Expand Up @@ -68,7 +68,7 @@ const acts = dictify(actList, 'id');
const ACT_IDS = keymirror(acts);

actList.forEach(act => {
if (!act.id || !act.aimRange || !act.effectRange) {
if (!act.id || !act.friendshipType || !act.aimRange || !act.effectRange) {
throw new Error(`Act.id="${ act.id }" is invalid`);
}
});
Expand Down

0 comments on commit f3f3df9

Please sign in to comment.