Skip to content

Commit

Permalink
Test Ping Korgent
Browse files Browse the repository at this point in the history
  • Loading branch information
Procyonae committed Nov 26, 2024
1 parent 0d9fef6 commit e53fd05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
4 changes: 1 addition & 3 deletions data/mods/Magiclysm/eoc_spell_difficulty_modifiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
"effect": [
{
"math": [
"u_spellcasting_adjustment('difficulty', 'mod': 'magiclysm', 'flag_whitelist': 'SOMATIC' )",
"=",
"(u_effect_intensity('grabbed', 'bodypart': 'arm_l') + u_effect_intensity('grabbed', 'bodypart': 'arm_r') ) / 10"
"u_spellcasting_adjustment('difficulty', 'mod': 'magiclysm', 'flag_whitelist': 'SOMATIC' ) = (u_effect_intensity('grabbed', 'bodypart': 'arm_l') + u_effect_intensity('grabbed', 'bodypart': 'arm_r') ) / 10"
]
}
]
Expand Down
11 changes: 2 additions & 9 deletions src/magic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1005,18 +1005,11 @@ std::vector<tripoint_bub_ms> spell::targetable_locations( const Character &sourc

std::vector<tripoint_bub_ms> selectable_targets;
for( const tripoint_bub_ms &query : here.points_in_radius( char_pos, range( source ) ) ) {
if( !ignore_walls && has_obstruction( query ) ) {
// it's blocked somewhere!
if( ( !ignore_walls && has_obstruction( query ) ) || ( !select_ground && !source.sees( query ) ) ) {
// it's blocked somewhere or you can't target a critter you can't see
continue;
}

if( !select_ground ) {
if( !source.sees( query ) ) {
// can't target a critter you can't see
continue;
}
}

if( is_valid_target( source, query ) ) {
selectable_targets.push_back( query );
}
Expand Down

0 comments on commit e53fd05

Please sign in to comment.